return -1 when no exit code presents in WaitProcess()

This commit is contained in:
moe li 2026-05-25 16:48:36 +08:00
parent c0b4c6ca58
commit 05e35b81f6

View File

@ -4587,11 +4587,9 @@ RLAPI int WaitProcess(Process process)
// Normal exit
return WEXITSTATUS(status);
}
else if (WIFSIGNALED(status))
{
// Terminated by signal
return -1;
}
// Terminated by signal or other non-normal exit
return -1;
}
else
{