X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Fmain.c;h=6e7378be8d7e21ec0d7ed23e17630ec27b6d5e22;hb=356d8d558d844412119aa18c8e5a113bc6459c7b;hp=1b513ca3030e1d621625ea6fedf8deb8a4ba0b2a;hpb=2b6310fd24dba8e0fca8999916a162f0a1842a84;p=ppp.git diff --git a/pppd/main.c b/pppd/main.c index 1b513ca..6e7378b 100644 --- a/pppd/main.c +++ b/pppd/main.c @@ -1719,7 +1719,7 @@ device_script(program, in, out, dont_wait) update_system_environment(); execl("/bin/sh", "sh", "-c", program, (char *)0); perror("pppd: could not exec /bin/sh"); - exit(99); + _exit(99); /* NOTREACHED */ } @@ -1841,7 +1841,7 @@ run_program(prog, args, must_exist, done, arg, wait) syslog(LOG_ERR, "Can't execute %s: %m", prog); closelog(); } - _exit(-1); + _exit(99); }