Skip to content

Commit 8a870f1

Browse files
committed
issue #625: use exec() instead of subprocess in mitogen_ansible_playbook
This is just to make CTRL+C handling less confusing. Alternate would be ignoring SIGINT, but this is simpler.
1 parent 0e48962 commit 8a870f1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/ansible/mitogen_ansible_playbook.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,8 @@
33
import subprocess
44
import sys
55
os.environ['ANSIBLE_STRATEGY'] = 'mitogen_linear'
6-
subprocess.check_call(['./run_ansible_playbook.py'] + sys.argv[1:])
6+
os.execlp(
7+
'./run_ansible_playbook.py',
8+
'./run_ansible_playbook.py',
9+
*sys.argv[1:]
10+
)

0 commit comments

Comments
 (0)