paranoia
This commit is contained in:
parent
e9dbe11dbf
commit
37cc72d323
2 changed files with 17 additions and 2 deletions
|
|
@ -38,7 +38,15 @@ child(void)
|
|||
raise(WTERMSIG(status));
|
||||
_exit(98); /* not reached */
|
||||
}
|
||||
fprint(2, "%s: wait pid %d status 0x%ux\n", pid, status);
|
||||
if(WIFSTOPPED(status)){
|
||||
fprint(2, "%s: wait pid %d stopped\n", argv0, pid);
|
||||
return;
|
||||
}
|
||||
if(WIFCONTINUED(status)){
|
||||
fprint(2, "%s: wait pid %d continued\n", argv0, pid);
|
||||
return;
|
||||
}
|
||||
fprint(2, "%s: wait pid %d status 0x%ux\n", argv0, pid, status);
|
||||
_exit(99);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue