commit 1c3e697dd49a595480fe4910e5eb54cd21009569
parent 95ca0d99e34df70255ac5ac3071c2a82aa93ee84
Author: leitner <leitner>
Date: Thu, 8 Nov 2001 16:38:29 +0000
oops, sigchild needs to be in there, it just does not need to do
anything.
Diffstat:
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/minit.c b/minit.c
@@ -316,11 +316,11 @@ void childhandler() {
handlekilled(killed);
}
-static volatile int dowait=0;
+// static volatile int dowait=0;
static volatile int dowinch=0;
static volatile int doint=0;
-void sigchild(int whatever) { dowait=1; }
+void sigchild(int whatever) { /* waitpid is done anyway */ }
void sigwinch(int sig) { dowinch=1; }
void sigint(int sig) { doint=1; }
@@ -403,7 +403,7 @@ main(int argc, char *argv[]) {
}
/* if (dowait) {
dowait=0; */
- childhandler();
+ childhandler();
/* } */
switch (poll(&pfd,nfds,5000)) {
case -1:
@@ -466,11 +466,13 @@ ok:
break;
default:
}
+#if 0
for (;;) {
int status;
pid_t killed=waitpid(-1,&status,WNOHANG);
if (killed==0) break;
handlekilled(killed);
}
+#endif
}
}