This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author gregory.p.smith
Recipients exarkun, gregory.p.smith, wizzardx
Date 2010-09-30.16:19:32
SpamBayes Score 3.7368565e-05
Marked as misclassified No
Message-id <1285863574.22.0.365525361374.issue9994@psf.upfronthosting.co.za>
In-reply-to
Content
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/
History
Date User Action Args
2010-09-30 16:19:34gregory.p.smithsetrecipients: + gregory.p.smith, exarkun, wizzardx
2010-09-30 16:19:34gregory.p.smithsetmessageid: <1285863574.22.0.365525361374.issue9994@psf.upfronthosting.co.za>
2010-09-30 16:19:32gregory.p.smithlinkissue9994 messages
2010-09-30 16:19:32gregory.p.smithcreate