X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=pppd%2Fmain.c;h=a84fd4251f90ed71f231e58a697cbc334be3fd35;hp=e484069687ac58a6348226d65505cbf3b4dcbf64;hb=a6b37e93378a72f1dd8f14ccf62a8dcbb8326c87;hpb=5480ff0d77f884d0e1d97388ac24926a00b322a5;ds=sidebyside 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;