diff options
| author | Andrey A. Chernov <ache@FreeBSD.org> | 2000-05-01 10:24:21 +0000 |
|---|---|---|
| committer | Andrey A. Chernov <ache@FreeBSD.org> | 2000-05-01 10:24:21 +0000 |
| commit | ef4de1ad38692e1f575a2d8aca6d3095761a33b8 (patch) | |
| tree | f2221d70bdcf46a829f871438125bd7f9b817baa /sys/kern/tty_pty.c | |
| parent | e52ac4f6d65f2cb5f31c060514c3753a079109ff (diff) | |
Notes
Diffstat (limited to 'sys/kern/tty_pty.c')
| -rw-r--r-- | sys/kern/tty_pty.c | 2 |
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); |
