so-called-hang-on-exit

Jim Knoble jmknoble at pobox.com
Thu Aug 8 11:06:11 EST 2002


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.

-- 
jim knoble  |  jmknoble at pobox.com  |  http://www.pobox.com/~jmknoble/
(GnuPG fingerprint: 31C4:8AAC:F24E:A70C:4000::BBF4:289F:EAA8:1381:1491)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 262 bytes
Desc: not available
Url : http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20020807/ef0744ec/attachment.bin 


More information about the openssh-unix-dev mailing list