diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2001-05-07 19:26:04 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2001-05-07 19:26:04 +0000 |
commit | a929f2f626962b118eb158372eb38230e93de710 (patch) | |
tree | e87450767c1e6668f23759affb571b6586101732 /usr.bin | |
parent | 048268ab6c94fadc86e9b2a46ae698ebc966508a (diff) |
remove waitpid-related XXX's -- this is OK
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/sup/src/run.c | 7 | ||||
-rw-r--r-- | usr.bin/sup/src/supfilesrv.c | 3 |
2 files changed, 4 insertions, 6 deletions
diff --git a/usr.bin/sup/src/run.c b/usr.bin/sup/src/run.c index 9b272fd7bf2..4956befe5b2 100644 --- a/usr.bin/sup/src/run.c +++ b/usr.bin/sup/src/run.c @@ -1,4 +1,4 @@ -/* $OpenBSD: run.c,v 1.8 2001/05/04 22:16:15 millert Exp $ */ +/* $OpenBSD: run.c,v 1.9 2001/05/07 19:26:03 millert Exp $ */ /* * Copyright (c) 1991 Carnegie Mellon University @@ -225,11 +225,10 @@ dorun(name, argv, usepath) sigaction(SIGINT, &ignoresig, &intsig); sigaction(SIGQUIT, &ignoresig, &quitsig); do { - /* XXX - just give waitpid() pid instead of -1? (millert) */ wpid = waitpid(-1, &status, WUNTRACED); if (WIFSTOPPED(status)) { - kill(0, SIGTSTP); - wpid = 0; + kill(0, SIGTSTP); + wpid = 0; } } while (wpid != pid && wpid != -1); sigaction (SIGINT, &intsig, 0); /* restore signals */ diff --git a/usr.bin/sup/src/supfilesrv.c b/usr.bin/sup/src/supfilesrv.c index 6e0f8ef4363..f80ca676b83 100644 --- a/usr.bin/sup/src/supfilesrv.c +++ b/usr.bin/sup/src/supfilesrv.c @@ -1,4 +1,4 @@ -/* $OpenBSD: supfilesrv.c,v 1.23 2001/05/07 02:08:02 millert Exp $ */ +/* $OpenBSD: supfilesrv.c,v 1.24 2001/05/07 19:26:02 millert Exp $ */ /* * Copyright (c) 1992 Carnegie Mellon University @@ -521,7 +521,6 @@ chldsig(snum) { int w; - /* XXX - should deal with suspended processes (millert) */ while (waitpid(-1, &w, WNOHANG) > 0) { if (nchildren) nchildren--; |