X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=pppd%2Ftty.c;h=1ef8a52eacae3bf8a6560005c2659214e1186622;hp=c11d039364420c97093f00bc370649f550610f7e;hb=5628c6cdf469989897d40a1820d725806a1fcbf2;hpb=3c9d53d98102887698af1c1b3655274207e7c941 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; }