mirror of https://github.com/ansible/ansible.git
Fix signal propagation (#85907)
parent
9ee667030f
commit
5a9afe4409
@ -0,0 +1,3 @@
|
||||
bugfixes:
|
||||
- SIGINT/SIGTERM Handling - Make SIGINT/SIGTERM handling more robust by splitting concerns
|
||||
between forks and the parent.
|
||||
@ -0,0 +1,3 @@
|
||||
shippable/posix/group4
|
||||
context/controller
|
||||
needs/target/test_utils
|
||||
@ -0,0 +1,14 @@
|
||||
localhost0
|
||||
localhost1
|
||||
localhost2
|
||||
localhost3
|
||||
localhost4
|
||||
localhost5
|
||||
localhost6
|
||||
localhost7
|
||||
localhost8
|
||||
localhost9
|
||||
|
||||
[all:vars]
|
||||
ansible_connection=local
|
||||
ansible_python_interpreter={{ansible_playbook_python}}
|
||||
@ -0,0 +1,21 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
set -x
|
||||
|
||||
../test_utils/scripts/timeout.py -s SIGINT 3 -- \
|
||||
ansible all -i inventory -m debug -a 'msg={{lookup("pipe", "sleep 33")}}' -f 10
|
||||
if [[ "$?" != "124" ]]; then
|
||||
echo "Process was not terminated due to timeout"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# a short sleep to let processes die
|
||||
sleep 2
|
||||
|
||||
sleeps="$(pgrep -alf 'sleep\ 33')"
|
||||
rc="$?"
|
||||
if [[ "$rc" == "0" ]]; then
|
||||
echo "Found lingering processes:"
|
||||
echo "$sleeps"
|
||||
exit 1
|
||||
fi
|
||||
Loading…
Reference in New Issue