diff options
author | Andrey A. Chernov <ache@FreeBSD.org> | 2000-04-27 20:14:21 +0000 |
---|---|---|
committer | Andrey A. Chernov <ache@FreeBSD.org> | 2000-04-27 20:14:21 +0000 |
commit | 2cddfc0992d58737b975bf92e61e9eb1f2979004 (patch) | |
tree | 2ea3bd63e55239cc20f52346c5809a7dcb1b3126 /sys/kern | |
parent | 83354dc7f2f5bbd9a26e67c3b1f953685ff93446 (diff) | |
download | src-2cddfc0992d58737b975bf92e61e9eb1f2979004.tar.gz src-2cddfc0992d58737b975bf92e61e9eb1f2979004.zip |
Add default 5min timeout for output drain to stop hanging on exit or in other
places when connection dropped
Notes
Notes:
svn path=/head/; revision=59707
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/tty.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c index f393cafe3738..249880ffc660 100644 --- a/sys/kern/tty.c +++ b/sys/kern/tty.c @@ -218,6 +218,8 @@ ttyopen(device, tp) SET(tp->t_state, TS_CONNECTED); bzero(&tp->t_winsize, sizeof(tp->t_winsize)); } + /* XXX don't hang forever on output */ + tp->t_timeout = 5*60*hz; ttsetwater(tp); splx(s); return (0); |