diff options
| author | Brian Somers <brian@FreeBSD.org> | 1999-12-13 22:40:46 +0000 |
|---|---|---|
| committer | Brian Somers <brian@FreeBSD.org> | 1999-12-13 22:40:46 +0000 |
| commit | 3ccc08308b7725632afd9d19118e87b6d6ad935b (patch) | |
| tree | 4f35c7a121b5b66973356a1170fcde111bc24f37 | |
| parent | 8e4ba94c27f34069c7359d6ed1d90c8880eee6c1 (diff) | |
Notes
| -rw-r--r-- | usr.sbin/ppp/tty.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ppp/tty.c b/usr.sbin/ppp/tty.c index db9fddce2b06..e248679e214c 100644 --- a/usr.sbin/ppp/tty.c +++ b/usr.sbin/ppp/tty.c @@ -112,6 +112,7 @@ tty_Timeout(void *data) log_Printf(LogDEBUG, "%s: ioctl error (%s)!\n", p->link.name, strerror(errno)); timer_Stop(&dev->Timer); + dev->mbits = TIOCM_CD; return; } } else @@ -187,8 +188,7 @@ tty_AwaitCarrier(struct physical *p) return CARRIER_PENDING; /* Not yet ! */ } - return Online(dev) || !p->cfg.cd.necessity == CD_REQUIRED ? - CARRIER_OK : CARRIER_LOST; + return Online(dev) ? CARRIER_OK : CARRIER_LOST; } static int |
