Processes left unkilled (portable)

Markus Friedl markus at openbsd.org
Sun Oct 28 20:20:57 EST 2001


On Sat, Oct 27, 2001 at 04:37:37PM -0700, Danek Duvall wrote:
> I just came across this problem (on Linux, using OpenSSH 2.9.9p2).  Run
> 
>     ssh <host> "tail -f <file> | grep <regexp>"
> 
> Let it connect, and then hit ^C.  If you look on <host>, the tail
> process has been orphaned, but grep, which was its parent, and a direct
> child of sshd, is gone.
> 
> It appears that the immediate child of the sshd (grep) is sent a SIGTERM
> (on line 1983 of session.c, in the function session_close_by_channel()),
> but its child (tail) never finds out about that death, and stays happily
> alive.

the killing has been removed completely.
could you please try a recent snapshot from
	http://www.openssh.com/portable.html
thanks, -m



More information about the openssh-unix-dev mailing list