diff options
author | Andrey A. Chernov <ache@FreeBSD.org> | 2000-05-01 09:05:03 +0000 |
---|---|---|
committer | Andrey A. Chernov <ache@FreeBSD.org> | 2000-05-01 09:05:03 +0000 |
commit | 4eaed34ba019e0c39f1c3eeed646542d30ad4f05 (patch) | |
tree | 1402432030228430aef6f1a4fcbd80882a7f3fdb /sys/kern/tty_pty.c | |
parent | af5bd99e9ae010bae45cd99c46e117bba4c1d4f6 (diff) | |
download | src-4eaed34ba019e0c39f1c3eeed646542d30ad4f05.tar.gz src-4eaed34ba019e0c39f1c3eeed646542d30ad4f05.zip |
Set t_timeout to its default sysctl value only once in ttyopen
Initialize t_timeout to -1 for this reason
Pointed-by: bde
Notes
Notes:
svn path=/head/; revision=59815
Diffstat (limited to 'sys/kern/tty_pty.c')
-rw-r--r-- | sys/kern/tty_pty.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/tty_pty.c b/sys/kern/tty_pty.c index 14269c131616..4e58c2410b31 100644 --- a/sys/kern/tty_pty.c +++ b/sys/kern/tty_pty.c @@ -157,6 +157,7 @@ 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); } |