mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-11-22 20:06:40 +00:00
pm: fix process exit on < 5.0.0 (closes #748) (thanks @misson20000)
This commit is contained in:
parent
f9a199557c
commit
0a18c63f24
1 changed files with 4 additions and 3 deletions
|
@ -412,12 +412,12 @@ namespace ams::pm::impl {
|
|||
}
|
||||
break;
|
||||
case ProcessState_Exited:
|
||||
if (hos::GetVersion() < hos::Version_500 && process_info->ShouldSignalOnExit()) {
|
||||
g_process_event.Signal();
|
||||
} else {
|
||||
/* Free process resources, unlink from waitable manager. */
|
||||
process_info->Cleanup();
|
||||
|
||||
if (hos::GetVersion() < hos::Version_500 && process_info->ShouldSignalOnExit()) {
|
||||
g_process_event.Signal();
|
||||
} else {
|
||||
/* Handle the case where we need to keep the process alive some time longer. */
|
||||
if (hos::GetVersion() >= hos::Version_500 && process_info->ShouldSignalOnExit()) {
|
||||
/* Remove from the living list. */
|
||||
|
@ -436,6 +436,7 @@ namespace ams::pm::impl {
|
|||
CleanupProcessInfo(list, process_info);
|
||||
}
|
||||
}
|
||||
break;
|
||||
case ProcessState_DebugSuspended:
|
||||
if (process_info->ShouldSignalOnDebugEvent()) {
|
||||
process_info->SetSuspended();
|
||||
|
|
Loading…
Reference in a new issue