mirror of
https://github.com/mitogen-hq/mitogen.git
synced 2025-02-26 21:00:41 +00:00
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.
This commit is contained in:
parent
0e489625ed
commit
8a870f1402
@ -3,4 +3,8 @@ import os
|
|||||||
import subprocess
|
import subprocess
|
||||||
import sys
|
import sys
|
||||||
os.environ['ANSIBLE_STRATEGY'] = 'mitogen_linear'
|
os.environ['ANSIBLE_STRATEGY'] = 'mitogen_linear'
|
||||||
subprocess.check_call(['./run_ansible_playbook.py'] + sys.argv[1:])
|
os.execlp(
|
||||||
|
'./run_ansible_playbook.py',
|
||||||
|
'./run_ansible_playbook.py',
|
||||||
|
*sys.argv[1:]
|
||||||
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user