From: Paul Mackerras Date: Fri, 19 May 1995 03:26:25 +0000 (+0000) Subject: use die when finished, not exit; log message on input eof X-Git-Tag: RELEASE_2_3_6~707 X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=commitdiff_plain;h=8d2b8187352766197e43a8be3f350acc91a65381 use die when finished, not exit; log message on input eof --- diff --git a/pppd/main.c b/pppd/main.c index 1c72a8c..38af544 100644 --- a/pppd/main.c +++ b/pppd/main.c @@ -18,7 +18,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: main.c,v 1.22 1995/05/01 01:44:30 paulus Exp $"; +static char rcsid[] = "$Id: main.c,v 1.23 1995/05/19 03:26:25 paulus Exp $"; #endif #include @@ -386,10 +386,7 @@ main(argc, argv) } while (persist); - if (lockflag && !default_device) - unlock(); - - exit(0); + die(0); } @@ -410,7 +407,7 @@ get_input() return; if (len == 0) { - MAINDEBUG((LOG_DEBUG, "End of file on fd!")); + syslog(LOG_NOTICE, "Modem hangup"); hungup = 1; lcp_lowerdown(0); /* serial link is no longer available */ phase = PHASE_DEAD;