diff options
author | Paul Mackerras <paulus@samba.org> | 2008-07-01 12:27:56 +0000 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2008-07-01 12:27:56 +0000 |
commit | 7a7ed0a1a26961a165fd17183fd161c36a4b088f (patch) | |
tree | ce5c988a2060a794edde11c42c9a969eeed23514 /pppd/tty.c | |
parent | add0eafae973567f6aa43156a64bd2533b47df93 (diff) | |
download | ppp-7a7ed0a1a26961a165fd17183fd161c36a4b088f.tar.gz |
Clear hungup in start_link() instead of connect_tty()
Since hungup gets set in get_input(), which is generic, but only
cleared in connect_tty(), which is specific to the tty channel type,
other channel types were showing various problems on the second and
subsequent connections when the persist option was used. This fixes
it by clearing hungup in start_link() rather than connect_tty().
Diffstat (limited to 'pppd/tty.c')
-rw-r--r-- | pppd/tty.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -68,7 +68,7 @@ * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -#define RCSID "$Id: tty.c,v 1.26 2008/06/23 11:44:06 paulus Exp $" +#define RCSID "$Id: tty.c,v 1.27 2008/07/01 12:27:56 paulus Exp $" #include <stdio.h> #include <ctype.h> @@ -554,7 +554,6 @@ int connect_tty() * out and we want to use the modem lines, we reopen it later * in order to wait for the carrier detect signal from the modem. */ - hungup = 0; got_sigterm = 0; connector = doing_callback? callback_script: connect_script; if (devnam[0] != 0) { |