diff options
author | Matt Davis <6775756+nitzmahone@users.noreply.github.com> | 2022-12-05 20:46:15 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-05 20:46:15 -0800 |
commit | 1424484be0e1b9a1d1e7e1849ae1a5e2a19d612c (patch) | |
tree | d14e1296fc4ecf6202d78b79e6262c0c1728c000 /test/integration/targets/lookup_dict | |
parent | 80d2f8da02052f64396da6b8caaf820eedbf18e2 (diff) | |
download | ansible-1424484be0e1b9a1d1e7e1849ae1a5e2a19d612c.tar.gz |
Prevent stdio deadlock in forked children (#79522)
* background threads writing to stdout/stderr can cause children to deadlock if a thread in the parent holds the internal lock on the BufferedWriter wrapper
* prevent writes to std handles during fork by monkeypatching stdout/stderr during display startup to require a mutex lock with fork(); this ensures no background threads can hold the lock during a fork operation
* add integration test that fails reliably on Linux without this fix
Diffstat (limited to 'test/integration/targets/lookup_dict')
0 files changed, 0 insertions, 0 deletions