ansible/changelogs
Jonathan Oddy 60e7f43998 [stable-2.7] Restore SIGPIPE handler to DFL on POpen
Python sets the SIGPIPE handler to SIG_IGN. On execv() signal handlers are
reset to their defaults, EXCEPT those that are SIG_IGN which are left ignored.
In Python 3 subprocess.popen explicitly resets the SIGPIPE handler to SIG_DFL,
but unfortunately in Python 2.7 it does not. This leads to subprocesses being
executed with SIGPIPE ignored. This is often a problem with bash scripts which
rely on SIGPIPE to terminate commands in a pipe, but can easily be a problem
with other applications.

This implements the Python 3 behaviour for Python 2.7 by using a preexec_fn.
(cherry picked from commit f2dccb9)

Co-authored-by: Jonathan Oddy <jonathan.oddy@transferwise.com>
2018-10-15 10:54:04 -07:00
..
fragments [stable-2.7] Restore SIGPIPE handler to DFL on POpen 2018-10-15 10:54:04 -07:00
.changes.yaml New release v2.7.0 2018-10-03 20:27:28 -07:00
CHANGELOG-v2.7.rst New release v2.7.0 2018-10-03 20:27:28 -07:00
CHANGELOG.rst fix RPM builds with placeholder CHANGELOG 2018-05-30 16:47:48 -07:00
config.yaml Implement new changelog generator. 2018-06-05 19:08:15 -07:00