[*] another one (9393c175)

This commit is contained in:
Reece Wilson 2023-12-25 07:49:50 +00:00
parent cdc6eeeabd
commit d17903251b

View File

@ -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
}