summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/kern/tty.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/kern/tty.c b/sys/kern/tty.c
index f393caf..249880f 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);
OpenPOWER on IntegriCloud