#include <sys/wait.h>
sys/wait.h
macroWEXITSTATUS
#define WEXITSTATUS(x) (_W_INT(x) >> 8)
unionwait
Deprecated:
Structure of the information in the status word returned by wait4.
If w_stopval==_WSTOPPED, then the second structure describes
the information returned, else the first.
| int | w_status | used in syscall | ||||||||||||
| unnamed struct at Kernel/sys/wait.h:199:2 | w_T | Terminated process status. | ||||||||||||
| ||||||||||||||
| unnamed struct at Kernel/sys/wait.h:217:2 | w_S | Stopped process status. Returned only for traced children unless requested with the WUNTRACED option bit. | ||||||||||||
| ||||||||||||||