support waitid

send SIGCHLD to parent when SIGSTOP or SIGCONT received

refs #425
refs #283
This commit is contained in:
Tomoki Shirasawa
2015-02-22 20:05:30 +09:00
parent 3d426ada01
commit d9cf1d49b1
4 changed files with 173 additions and 50 deletions

View File

@ -122,6 +122,11 @@
#define WNOWAIT 0x01000000 /* Don't reap, just poll status. */
#define __WCLONE 0x80000000
/* idtype */
#define P_ALL 0
#define P_PID 1
#define P_PGID 2
/* If WIFEXITED(STATUS), the low-order 8 bits of the status. */
#define __WEXITSTATUS(status) (((status) & 0xff00) >> 8)