mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:47:34 +00:00
LibC: Add WIFCONTINUED
macro
Like other systems, we can encode the continued state with 0xffff in the status value. This is needed for some ports.
This commit is contained in:
parent
5a73bf1553
commit
8730e56e88
2 changed files with 2 additions and 1 deletions
|
@ -64,7 +64,7 @@ pid_t waitpid(pid_t waitee, int* wstatus, int options)
|
|||
*wstatus = siginfo.si_status << 8 | 0x7f;
|
||||
break;
|
||||
case CLD_CONTINUED:
|
||||
*wstatus = 0;
|
||||
*wstatus = 0xffff;
|
||||
return 0; // return 0 if running
|
||||
default:
|
||||
VERIFY_NOT_REACHED();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue