> There is a number of places this may occurse and all of them have no timeout 
> by default.  F.e.  if some terminal shell hangs in exit's ttywait, comsat 
> hangs on ttywrite and lots of comsats appearse after several hours. Alternative
> solution will be adding
> 
>       tp->t_timeout = 180 * hz;
> 
> while initializing tp struct, but it is more radical than I suggest initially.
> Any ideas?

I mean following patch here:

--- tty.c.bak   Thu Apr  6 19:20:22 2000
+++ tty.c       Thu Apr 27 03:27:42 2000
@@ -218,6 +218,7 @@
                        SET(tp->t_state, TS_CONNECTED);
                bzero(&tp->t_winsize, sizeof(tp->t_winsize));
        }
+       tp->t_timeout = 180 * hz;       /* XXX don't hang forever */
        ttsetwater(tp);
        splx(s);
        return (0);


-- 
Andrey A. Chernov
<[EMAIL PROTECTED]>
http://nagual.pp.ru/~ache/


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to