[issue9994] Python becoming orphaned over ssh

Gregory P. Smith report at bugs.python.org
Thu Sep 30 18:19:34 CEST 2010


Gregory P. Smith <greg at krypto.org> added the comment:

Ah right, thanks.  I added a restore_signals=True argument to Popen in Python 3.2's subprocess module that does what you want:

http://docs.python.org/dev/library/subprocess.html

The way to emulate that in earlier versions is to use a preexec_fn to restore the signal handler for SIGPIPE to SIGDFL.

You can also use backport of 3.2's subprocess module available here: http://code.google.com/p/python-subprocess32/

----------
resolution:  -> wont fix
status: open -> closed

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9994>
_______________________________________


More information about the Python-bugs-list mailing list