[PATCH]: Patch to fix hang on exit bug under Linux and add optional exit delay

Nicolas Williams Nicolas.Williams at ubsw.com
Fri Nov 16 03:51:28 EST 2001


On Thu, Nov 15, 2001 at 05:00:13PM +0100, Markus Friedl wrote:
> On Thu, Nov 15, 2001 at 10:44:51AM -0500, Ed Phillips wrote:
> > If ssh goes away, SIGPIPE is more likely.  If you really want to end your
> > session, then just kill ssh... the rest of the processes on the server
> > side should go away, shouldn't they?
> 
> i sent a patch to the list, for transfering signals over
> the wire, but nobody seemed to care.

I care... But I won't get around to testing the latest OpenSSH or signal
forwarding for some time.

> e.g. currently for
> 	$ ssh host 'tail -f bla | grep bla'
> 	^C
> tail and grep still run on the remote host.

Shouldn't sshd kill -HUP the process groups of its sessions when the
client closes them??

Doing that would give those procs a chance to exit cleanly and avoid
data loss altogether.

> -m


Cheers,

Nico
--

Visit our website at http://www.ubswarburg.com

This message contains confidential information and is intended only 
for the individual named.  If you are not the named addressee you 
should not disseminate, distribute or copy this e-mail.  Please 
notify the sender immediately by e-mail if you have received this 
e-mail by mistake and delete this e-mail from your system.

E-mail transmission cannot be guaranteed to be secure or error-free 
as information could be intercepted, corrupted, lost, destroyed, 
arrive late or incomplete, or contain viruses.  The sender therefore 
does not accept liability for any errors or omissions in the contents 
of this message which arise as a result of e-mail transmission.  If 
verification is required please request a hard-copy version.  This 
message is provided for informational purposes and should not be 
construed as a solicitation or offer to buy or sell any securities or 
related financial instruments.




More information about the openssh-unix-dev mailing list