Subject: Re: tip/SIGTERM/signals bug?
To: Brad Parker <brad@fcr.com>
From: Chris G. Demetriou <cgd@nobozo.CS.Berkeley.EDU>
List: netbsd-bugs
Date: 11/11/1993 16:12:33
> I'm running netbsd-current and I wonder if anyone can explain this
> (I also wonder if anyone reads what I send to this list ;-)

well, actually, i read everything by everybode *except* you.
really!  (yeah, that's it...  8-)

> Now, I could change tip, but I would guess that tip is not actually
> the problem.

this diff would help some; tip does a *very* bad job of checking error
returns, and this is one instance of that...

> I would also guess that when I break the rlogin session
> all the procs get at least a SIGHUP.  the tip code appears to catch
> sigterm and call cleanup.  but, for some reason this is not happening.

as you note, this is the problem.

you're quite correct in your analysis, and it is a bug in the pty
code, i believe.  we've been bitten by this lots, but haven't
yet gotten around to fixing it...  (i'm not sure that your fix
is correct, though...)



chris


------------------------------------------------------------------------------