diff options
author | ache <ache@FreeBSD.org> | 1996-03-13 12:02:16 +0000 |
---|---|---|
committer | ache <ache@FreeBSD.org> | 1996-03-13 12:02:16 +0000 |
commit | f5a60d6db1a0a87b052b985eddb4b9cb2989fb33 (patch) | |
tree | 134a1a40eb6b2d64e0e4ea9b0a0001dc08a55c0a /usr.sbin/ppp/modem.c | |
parent | 725860a88783a1f8445ff3abee3dc06ecfad2bdd (diff) | |
download | FreeBSD-src-f5a60d6db1a0a87b052b985eddb4b9cb2989fb33.zip FreeBSD-src-f5a60d6db1a0a87b052b985eddb4b9cb2989fb33.tar.gz |
Better fix for terminal mode
Diffstat (limited to 'usr.sbin/ppp/modem.c')
-rw-r--r-- | usr.sbin/ppp/modem.c | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/usr.sbin/ppp/modem.c b/usr.sbin/ppp/modem.c index d69d732..aeb2bc2 100644 --- a/usr.sbin/ppp/modem.c +++ b/usr.sbin/ppp/modem.c @@ -17,7 +17,7 @@ * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED * WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. * - * $Id: modem.c,v 1.14 1996/03/08 12:34:40 ache Exp $ + * $Id: modem.c,v 1.15 1996/03/09 08:18:39 ache Exp $ * * TODO: */ @@ -214,19 +214,11 @@ DownConnection() { LogPrintf(LOG_PHASE, "Disconnected!\n"); LogPrintf(LOG_PHASE, "Connect time: %d secs\n", time(NULL) - uptime); - CloseModem(); - LcpDown(); - connect_time = 0; - if (TermMode) { - modem = OpenModem(mode); - if (modem < 0) { - printf("failed to open modem.\n"); - modem = 0; - TtyCommandMode(1); - return; - } - TtyTermMode(); + if (!TermMode) { + CloseModem(); + LcpDown(); } + connect_time = 0; } /* |