You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test/integration/targets/fork_safe_stdio
Matt Davis 047affbdc5
Prevent stdio deadlock in forked children (#79522) (#79539)
* 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

(cherry picked from commit 1424484be0)
2 years ago
..
callback_plugins Prevent stdio deadlock in forked children (#79522) (#79539) 2 years ago
aliases Prevent stdio deadlock in forked children (#79522) (#79539) 2 years ago
hosts Prevent stdio deadlock in forked children (#79522) (#79539) 2 years ago
run-with-pty.py Prevent stdio deadlock in forked children (#79522) (#79539) 2 years ago
runme.sh Prevent stdio deadlock in forked children (#79522) (#79539) 2 years ago
test.yml Prevent stdio deadlock in forked children (#79522) (#79539) 2 years ago
vendored_pty.py Prevent stdio deadlock in forked children (#79522) (#79539) 2 years ago