]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Restore SIGPIPE default action for subprocesses
authorThierry Carrez <thierry@openstack.org>
Thu, 20 Sep 2012 12:21:00 +0000 (14:21 +0200)
committerChuck Short <chuck.short@canonical.com>
Fri, 5 Oct 2012 12:19:11 +0000 (07:19 -0500)
commitd12d4b62076c2c73bab295a328d9d254c16d5569
tree7e872699df10e9cee97902ac0bc0549c2b7a2029
parent7a158d2e29b939f0fa25f46afae09c8a8eb1f336
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 cinder.utils.execute and cinder-rootwrap
created subprocesses.

Fixes bug 1053364

Change-Id: I4b3307bd2f0f5d0da529d8b7d80fabae28c57732
bin/cinder-rootwrap
cinder/utils.py