From: Paul Mackerras Date: Tue, 11 Jul 1995 06:40:58 +0000 (+0000) Subject: Check for input after SIGHUP before closing LCP so we notice the X-Git-Tag: RELEASE_2_3_6~642 X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=commitdiff_plain;h=f52db44405c7cc9620701eda20889dc6743f8437;ds=sidebyside Check for input after SIGHUP before closing LCP so we notice the hungup condition. --- diff --git a/pppd/main.c b/pppd/main.c index 6ec72b4..2c7d526 100644 --- a/pppd/main.c +++ b/pppd/main.c @@ -18,7 +18,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: main.c,v 1.24 1995/06/12 11:22:49 paulus Exp $"; +static char rcsid[] = "$Id: main.c,v 1.25 1995/07/11 06:40:58 paulus Exp $"; #endif #include @@ -347,6 +347,7 @@ main(argc, argv) for (phase = PHASE_ESTABLISH; phase != PHASE_DEAD; ) { wait_input(timeleft(&timo)); calltimeout(); + get_input(); if (kill_link) { lcp_close(0); kill_link = 0; @@ -358,7 +359,6 @@ main(argc, argv) } open_ccp_flag = 0; } - get_input(); reap_kids(); /* Don't leave dead kids lying around */ }