Files
community.general/lib/ansible/module_utils
Jonathan Oddy f2dccb90e8 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.
2018-10-12 12:31:24 -07:00
..
2018-10-11 09:49:49 -04:00
2017-08-07 19:46:06 -07:00
2017-06-02 12:14:11 +01:00
2017-06-02 12:14:11 +01:00
2017-06-02 12:14:11 +01:00
2018-08-21 16:32:37 +02:00
2018-09-24 21:03:50 +02:00
2017-11-21 10:03:34 -08:00
2017-09-13 01:53:08 -07:00
2018-07-31 13:23:05 -04:00
2017-06-02 12:14:11 +01:00