aboutsummaryrefslogtreecommitdiff
path: root/src/libthread/daemonize.c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-01-11 21:28:00 +0000
committerrsc <devnull@localhost>2005-01-11 21:28:00 +0000
commit37cc72d323478b1d98ee741e3d88557d141e7767 (patch)
tree41906698bec7e235fc39b6a145a3d1335b66a2f2 /src/libthread/daemonize.c
parente9dbe11dbf43197892680f3b5084cd12b6dc198b (diff)
downloadplan9port-37cc72d323478b1d98ee741e3d88557d141e7767.tar.gz
plan9port-37cc72d323478b1d98ee741e3d88557d141e7767.tar.bz2
plan9port-37cc72d323478b1d98ee741e3d88557d141e7767.zip
paranoia
Diffstat (limited to 'src/libthread/daemonize.c')
-rw-r--r--src/libthread/daemonize.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/libthread/daemonize.c b/src/libthread/daemonize.c
index 8f4d5eee..c6e00d19 100644
--- a/src/libthread/daemonize.c
+++ b/src/libthread/daemonize.c
@@ -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);
}