Python becoming orphaned over ssh

Antoine Pitrou solipsis at pitrou.net
Fri Oct 1 10:35:52 EDT 2010


On Thu, 30 Sep 2010 07:01:09 -0700 (PDT)
Jean-Paul Calderone <exarkun at twistedmatrix.com> wrote:
> 
> But signal dispositions are inherited by child processes.  So you run
> ping from your short Python program, and it inherits SIGPIPE being
> ignored.  And it's written in C, not Python, so when it writes to the
> pipe, there's no exception.  So ping never gets any indication that it
> should exit.

But doesn't write() fail with EPIPE in that situation?
That would mean `ping` ignores any error return from write().

Regards

Antoine.





More information about the Python-list mailing list