diff options
author | Brian Somers <brian@FreeBSD.org> | 1998-03-21 22:58:43 +0000 |
---|---|---|
committer | Brian Somers <brian@FreeBSD.org> | 1998-03-21 22:58:43 +0000 |
commit | 6c56b953f711a2828da9f3ba9e829dff034f402d (patch) | |
tree | 44e386eb010d8877427c95c9e64bfd42ea5a3818 | |
parent | 2f7866811e62f81cb5c8adc015e3bb373410eaeb (diff) | |
download | src-6c56b953f711a2828da9f3ba9e829dff034f402d.tar.gz src-6c56b953f711a2828da9f3ba9e829dff034f402d.zip |
Call modem_Hangup() from modem_Close() if it hasn't already
been called.
Notes
Notes:
svn path=/cvs2svn/branches/MP/; revision=34770
-rw-r--r-- | usr.sbin/ppp/modem.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.sbin/ppp/modem.c b/usr.sbin/ppp/modem.c index bf99890d0fd4..0bce7b833110 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.77.2.39 1998/03/20 19:47:19 brian Exp $ + * $Id: modem.c,v 1.77.2.40 1998/03/20 19:48:14 brian Exp $ * * TODO: */ @@ -807,6 +807,9 @@ modem_Close(struct physical *modem) if (modem->fd < 0) return; + if (modem->link.Timer.load) + modem_Hangup(&modem->link, force_hack); + if (!isatty(modem->fd)) { modem_PhysicalClose(modem); return; |