so-called-hang-on-exit

Frank Cusack fcusack at fcusack.com
Thu Aug 8 13:40:43 EST 2002


On Wed, Aug 07, 2002 at 09:06:11PM -0400, Jim Knoble wrote:
> Circa 2002-08-07 17:07:11 -0400 dixit Nicolas.Williams at ubsw.com:
> 
> : Question: what happens to the background process groups? what
> : should happen to them?
> : 
> : By closing the pty master you cause them to get errors when
> : they next try to interact with the pty slave. Shouldn't they
> : get SIGHUP? Sshd cannot figure out what the process groups
> : are, so it can't send them SIGHUP; but an external script
> : could use the proc tools/ps/lsof to find all those orphaned
> : process groups and HUP them.
> 
> Shouldn't one just send HUP to the session leader?  Most shells pass
> the HUP along to their children anyway.

The session leader has already exited.

/fc



More information about the openssh-unix-dev mailing list