return -1 when no exit code presents in WaitProcess()
This commit is contained in:
parent
c0b4c6ca58
commit
05e35b81f6
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user