[2.6] Clean up after ansible-connection if failure occurred in start() (#45929)

(cherry picked from commit 0d143ed)

Co-authored-by: Nathaniel Case <this.is@nathanielca.se>
pull/45405/merge
Nathaniel Case 6 years ago committed by Matt Clay
parent 25f656413d
commit 3f9a08b056

@ -263,6 +263,8 @@ def main():
if rc == 0: if rc == 0:
process.run() process.run()
else:
process.shutdown()
sys.exit(rc) sys.exit(rc)

Loading…
Cancel
Save