[*] another one (9393c175
)
This commit is contained in:
parent
cdc6eeeabd
commit
d17903251b
@ -817,11 +817,14 @@ namespace Aurora::Processes
|
||||
void PosixProcessShutdown()
|
||||
{
|
||||
#if !defined(AURORA_IS_LINUX_DERIVED)
|
||||
AU_LOCK_GUARD(gRWLock->AsReadable());
|
||||
|
||||
for (const auto &[pid, pProcess] : gPidLookupMap)
|
||||
decltype(gPidLookupMap) cpy;
|
||||
{
|
||||
pProcess->Terminate();
|
||||
AU_LOCK_GUARD(gRWLock->AsReadable());
|
||||
cpy = gPidLookupMap;
|
||||
}
|
||||
for (const auto &[pid, pProcess] : cpy)
|
||||
{
|
||||
pProcess->HookMainDeath();
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user