Add default 5min timeout for output drain to stop hanging on exit or in other

places when connection dropped
This commit is contained in:
Andrey A. Chernov 2000-04-27 20:14:21 +00:00
parent 83354dc7f2
commit 2cddfc0992

View File

@ -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);