From: Paul Mackerras Date: Tue, 12 Jul 2005 01:09:05 +0000 (+0000) Subject: Stop the charshunt process after running the disconnector, X-Git-Tag: ppp-2.4.7~144 X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=commitdiff_plain;h=5628c6cdf469989897d40a1820d725806a1fcbf2 Stop the charshunt process after running the disconnector, rather than immediately a signal is received. With this change we can send a SIGHUP to pppd and actually have it do the LCP TermReq/TermAck exchange. --- diff --git a/pppd/tty.c b/pppd/tty.c index c11d039..1ef8a52 100644 --- a/pppd/tty.c +++ b/pppd/tty.c @@ -68,7 +68,7 @@ * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#define RCSID "$Id: tty.c,v 1.23 2004/12/31 11:49:22 paulus Exp $" +#define RCSID "$Id: tty.c,v 1.24 2005/07/12 01:09:05 paulus Exp $" #include #include @@ -773,6 +773,7 @@ void disconnect_tty() } else { info("Serial link disconnected."); } + stop_charshunt(NULL, 0); } void tty_close_fds() @@ -936,7 +937,6 @@ start_charshunt(ifd, ofd) exit(0); } charshunt_pid = cpid; - add_notifier(&sigreceived, stop_charshunt, 0); record_child(cpid, "pppd (charshunt)", charshunt_done, NULL); return 1; }