Add default 5min timeout for output drain to stop hanging on exit or in other
places when connection dropped
This commit is contained in:
parent
83354dc7f2
commit
2cddfc0992
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user