]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Restore SIGPIPE default action for subprocesses
authorThierry Carrez <thierry@openstack.org>
Thu, 20 Sep 2012 12:42:53 +0000 (14:42 +0200)
committerThierry Carrez <thierry@openstack.org>
Thu, 20 Sep 2012 13:22:47 +0000 (15:22 +0200)
commit30fe8a4e3c53438bbfb24ba882b3a37c65440e72
tree79aadccc86dd62a57fa823f3728a5a5c0396ebd4
parent3c3de4356aca19f8f47d1dd08e363accb857662b
Restore SIGPIPE default action for subprocesses

Python ignores SIGPIPE on startup, because it prefers to check every
write and raise an IOError exception rather than taking the signal. Most
Unix subprocesses don't expect to work this way. This patch (adapted
from Colin Watson's post at http://tinyurl.com/2a7mzh5) sets SIGPIPE
back to the default action for quantum.agent.linux.utils.execute,
quantum.common.utils.execute and quantum-rootwrap created subprocesses.

Fixes bug 1053364

Change-Id: Ib805f1f8846c245b75a5ea64278c840b823c1fb2
bin/quantum-rootwrap
quantum/agent/linux/utils.py
quantum/common/utils.py