diff options
Diffstat (limited to 'usr.bin/tip/tip.c')
| -rw-r--r-- | usr.bin/tip/tip.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/usr.bin/tip/tip.c b/usr.bin/tip/tip.c index c6ffbf5faf9..2a9d7c68fc5 100644 --- a/usr.bin/tip/tip.c +++ b/usr.bin/tip/tip.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tip.c,v 1.28 2006/03/17 21:43:51 deraadt Exp $ */ +/* $OpenBSD: tip.c,v 1.29 2006/06/06 23:24:52 deraadt Exp $ */ /* $NetBSD: tip.c,v 1.13 1997/04/20 00:03:05 mellon Exp $ */ /* @@ -40,7 +40,7 @@ static const char copyright[] = #if 0 static char sccsid[] = "@(#)tip.c 8.1 (Berkeley) 6/6/93"; #endif -static const char rcsid[] = "$OpenBSD: tip.c,v 1.28 2006/03/17 21:43:51 deraadt Exp $"; +static const char rcsid[] = "$OpenBSD: tip.c,v 1.29 2006/06/06 23:24:52 deraadt Exp $"; #endif /* not lint */ /* @@ -226,6 +226,11 @@ cucommon: pipe(fildes); pipe(repdes); (void)signal(SIGALRM, timeout); + if (value(LINEDISC) != TTYDISC) { + int ld = (int)value(LINEDISC); + ioctl(FD, TIOCSETD, &ld); + } + /* * Everything's set up now: * connection established (hardwired or dialup) |
