X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Fmain.c;h=632e1791d8c432436c860a3898963ccd717e8015;hb=cbaae8cca6a6377163a2b3ecbbfde1a0a2620bf7;hp=6ec72b44a7a550dc6994fb8edeae60c5d655c26d;hpb=2a09df9e052a1e395d7864ff5865fdea94cadfa3;p=ppp.git diff --git a/pppd/main.c b/pppd/main.c index 6ec72b4..632e179 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.26 1995/08/10 06:51:42 paulus Exp $"; #endif #include @@ -252,8 +252,8 @@ main(argc, argv) SIGNAL(SIGTERM, term); /* Terminate */ SIGNAL(SIGCHLD, chld); - signal(SIGUSR1, toggle_debug); /* Toggle debug flag */ - signal(SIGUSR2, open_ccp); /* Reopen CCP */ + SIGNAL(SIGUSR1, toggle_debug); /* Toggle debug flag */ + SIGNAL(SIGUSR2, open_ccp); /* Reopen CCP */ /* * Lock the device if we've been asked to. @@ -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 */ }