summaryrefslogtreecommitdiffstats
path: root/usr.sbin
diff options
context:
space:
mode:
authorbrian <brian@FreeBSD.org>1999-04-21 08:03:35 +0000
committerbrian <brian@FreeBSD.org>1999-04-21 08:03:35 +0000
commitdcc03543e09070d8dffd8773e1c01aac97c934f5 (patch)
treedd0021381abfb47a9e5fdf954b6d7decd2222ef9 /usr.sbin
parent4420c300813e0e09231d6f083317d3bcb0052619 (diff)
downloadFreeBSD-src-dcc03543e09070d8dffd8773e1c01aac97c934f5.zip
FreeBSD-src-dcc03543e09070d8dffd8773e1c01aac97c934f5.tar.gz
If ioctl TIOCMGET fails, continue. The device may be
a pseudo device created by an interactive version of rlogin/telnet/ssh & friends
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ppp/modem.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/usr.sbin/ppp/modem.c b/usr.sbin/ppp/modem.c
index b7908c9..b05465c 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.108 1999/04/03 11:54:00 brian Exp $
+ * $Id: modem.c,v 1.109 1999/04/03 12:01:38 brian Exp $
*
* TODO:
*/
@@ -287,9 +287,10 @@ modem_Timeout(void *data)
if (modem->fd >= 0) {
if (ioctl(modem->fd, TIOCMGET, &modem->mbits) < 0) {
- log_Printf(LogPHASE, "%s: ioctl error (%s)!\n", modem->link.name,
- strerror(errno));
- datalink_Down(modem->dl, CLOSE_NORMAL);
+ log_Printf(LogPHASE, "%s: Carrier not required (pseudo tty ?)\n",
+ modem->link.name);
+ timer_Stop(&modem->Timer);
+ modem->mbits = TIOCM_CD;
return;
}
} else
OpenPOWER on IntegriCloud