From: Paul Mackerras Date: Fri, 16 Apr 1999 11:29:13 +0000 (+0000) Subject: make sure pppd notices hangups in demand mode X-Git-Tag: ppp-2.4.7~740 X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=commitdiff_plain;h=7d7bc679a40a78e9f255635dacc5e1247176d075 make sure pppd notices hangups in demand mode --- diff --git a/linux/ppp.c b/linux/ppp.c index aa0ebc5..8cc2727 100644 --- a/linux/ppp.c +++ b/linux/ppp.c @@ -4,7 +4,7 @@ * Al Longyear * Extensively rewritten by Paul Mackerras * - * ==FILEVERSION 990331== + * ==FILEVERSION 990412== * * NOTE TO MAINTAINERS: * If you modify this file at all, please set the number above to the @@ -45,7 +45,7 @@ #define PPP_MAX_RCV_QLEN 32 /* max # frames we queue up for pppd */ -/* $Id: ppp.c,v 1.24 1999/03/31 06:07:57 paulus Exp $ */ +/* $Id: ppp.c,v 1.25 1999/04/16 11:29:13 paulus Exp $ */ #include #include @@ -552,6 +552,7 @@ ppp_tty_close (struct tty_struct *tty) ppp->tty = ppp->backup_tty; if (ppp_tty_push(ppp)) ppp_output_wakeup(ppp); + wake_up_interruptible(&ppp->read_wait); } else { ppp->tty = 0; ppp->sc_xfer = 0;