]> 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)
committerThierry Carrez <thierry@openstack.org>
Thu, 20 Sep 2012 13:26:28 +0000 (15:26 +0200)
commit730ebab71e11812b6b5990180e7bd9cabfe237c4
tree0b55e62a0734a1fec2f61f263b9985b634bd02e0
parent32721a67ae2936093aef5ecea4efd8b32a516c32
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