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/
_______________________________________________
nix-dev mailing list
[email protected]
http://lists.science.uu.nl/mailman/listinfo/nix-dev

Reply via email to