summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>2000-04-30 16:00:53 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>2000-04-30 16:00:53 +0000
commitc1d0c3a89dad2e3e0c07b1349c789bb27f3bc070 (patch)
tree8ac78d6a58543ffb4083b661f06f62bc0c11c7bc
parentd02e530b50aebaef5b6996e0b339bf14d134dd47 (diff)
downloadsrc-test2-c1d0c3a89dad2e3e0c07b1349c789bb27f3bc070.tar.gz
src-test2-c1d0c3a89dad2e3e0c07b1349c789bb27f3bc070.zip
Notes
-rw-r--r--sys/kern/tty.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c
index 249880ffc660..2ce8c8ac93ce 100644
--- a/sys/kern/tty.c
+++ b/sys/kern/tty.c
@@ -200,6 +200,10 @@ static u_char const char_type[] = {
*/
static SLIST_HEAD(, tty) tty_list;
+static int drainwait = 5*60;
+SYSCTL_INT(_kern, OID_AUTO, drainwait, CTLFLAG_RW, &drainwait,
+ 0, "Output drain timeout in seconds");
+
/*
* Initial open of tty, or (re)entry to standard tty line discipline.
*/
@@ -219,7 +223,7 @@ ttyopen(device, tp)
bzero(&tp->t_winsize, sizeof(tp->t_winsize));
}
/* XXX don't hang forever on output */
- tp->t_timeout = 5*60*hz;
+ tp->t_timeout = drainwait*hz;
ttsetwater(tp);
splx(s);
return (0);