From: Paul Mackerras Date: Tue, 24 Aug 1999 05:59:15 +0000 (+0000) Subject: fix buglet X-Git-Tag: ppp-2.4.7~647 X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=commitdiff_plain;h=a6b37e93378a72f1dd8f14ccf62a8dcbb8326c87 fix buglet --- diff --git a/pppd/main.c b/pppd/main.c index e484069..a84fd42 100644 --- a/pppd/main.c +++ b/pppd/main.c @@ -17,7 +17,7 @@ * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. */ -#define RCSID "$Id: main.c,v 1.84 1999/08/24 05:31:10 paulus Exp $" +#define RCSID "$Id: main.c,v 1.85 1999/08/24 05:59:15 paulus Exp $" #include #include @@ -1698,7 +1698,7 @@ reap_kids(waitfor) got_sigchld = 0; if (n_children == 0) - return; + return 0; while ((pid = waitpid(-1, &status, (waitfor? 0: WNOHANG))) != -1 && pid != 0) { --n_children;