]> git.ozlabs.org Git - ppp.git/blobdiff - pppd/main.c
Check for input after SIGHUP before closing LCP so we notice the
[ppp.git] / pppd / main.c
index 6ec72b44a7a550dc6994fb8edeae60c5d655c26d..2c7d5265cf2bb5b4421463b44134f3ab9a63e1a9 100644 (file)
@@ -18,7 +18,7 @@
  */
 
 #ifndef lint
  */
 
 #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 <stdio.h>
 #endif
 
 #include <stdio.h>
@@ -347,6 +347,7 @@ main(argc, argv)
        for (phase = PHASE_ESTABLISH; phase != PHASE_DEAD; ) {
            wait_input(timeleft(&timo));
            calltimeout();
        for (phase = PHASE_ESTABLISH; phase != PHASE_DEAD; ) {
            wait_input(timeleft(&timo));
            calltimeout();
+           get_input();
            if (kill_link) {
                lcp_close(0);
                kill_link = 0;
            if (kill_link) {
                lcp_close(0);
                kill_link = 0;
@@ -358,7 +359,6 @@ main(argc, argv)
                }
                open_ccp_flag = 0;
            }
                }
                open_ccp_flag = 0;
            }
-           get_input();
            reap_kids();        /* Don't leave dead kids lying around */
        }
 
            reap_kids();        /* Don't leave dead kids lying around */
        }