summaryrefslogtreecommitdiff
path: root/sys/kern/tty_pty.c
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>2000-05-01 10:24:21 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>2000-05-01 10:24:21 +0000
commitef4de1ad38692e1f575a2d8aca6d3095761a33b8 (patch)
treef2221d70bdcf46a829f871438125bd7f9b817baa /sys/kern/tty_pty.c
parente52ac4f6d65f2cb5f31c060514c3753a079109ff (diff)
Notes
Diffstat (limited to 'sys/kern/tty_pty.c')
-rw-r--r--sys/kern/tty_pty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/tty_pty.c b/sys/kern/tty_pty.c
index 4e58c2410b31..0f07561ff969 100644
--- a/sys/kern/tty_pty.c
+++ b/sys/kern/tty_pty.c
@@ -157,7 +157,6 @@ ptyinit(n)
devs->si_drv1 = devc->si_drv1 = pt;
devs->si_tty = devc->si_tty = &pt->pt_tty;
- pt->pt_tty.t_timeout = -1;
ttyregister(&pt->pt_tty);
}
@@ -356,6 +355,7 @@ ptcopen(dev, flag, devtype, p)
tp = dev->si_tty;
if (tp->t_oproc)
return (EIO);
+ tp->t_timeout = -1;
tp->t_oproc = ptsstart;
tp->t_stop = ptsstop;
(void)(*linesw[tp->t_line].l_modem)(tp, 1);