[Nix-dev] [PATCH] Make `build-remote.pl' work with GNU lshd

Eelco Dolstra e.dolstra at tudelft.nl
Fri Dec 9 14:29:30 CET 2011


Hi,

On 09/12/11 14:01, Ludovic Courtès wrote:

>> A process only gets a SIGPIPE if it does a write(), right?
> 
> Right, good point.
> 
> Hmm I’m not even sure why these things need to be done.  Suppose your
> run “ssh host foo”; when the SSH daemon loses the connection, doesn’t it
> kill ‘foo’ automatically?

No, it doesn't: try "ssh host sleep 10000", kill ssh, and observe that the
"sleep" command continues to run on the remote host.

If you use "ssh -tt", then a SIGHUP is sent to the remote processes, but this
causes problems with connection sharing on some platforms.

-- 
Eelco Dolstra | http://www.st.ewi.tudelft.nl/~dolstra/


More information about the nix-dev mailing list