summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.bin/sup/src/run.c7
-rw-r--r--usr.bin/sup/src/supfilesrv.c3
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--;