summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathaniel Case <this.is@nathanielca.se>2018-09-20 21:04:30 +0200
committerGitHub <noreply@github.com>2018-09-20 21:04:30 +0200
commit0d143ed7f63f28fafaf6f2d6f46fa20bbb7e4fb7 (patch)
tree0cfd8a7a9f0e403db75fe41fae546e7569dadbb2
parentAdd number of skipped tasks to play recap in 'default' callback (#45797) (diff)
downloadansible-0d143ed7f63f28fafaf6f2d6f46fa20bbb7e4fb7.tar.xz
ansible-0d143ed7f63f28fafaf6f2d6f46fa20bbb7e4fb7.zip
Clean up after ansible-connection if failure occurred in start() (#45929)
-rwxr-xr-xbin/ansible-connection2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/ansible-connection b/bin/ansible-connection
index 09656a5541..ac378a4d87 100755
--- a/bin/ansible-connection
+++ b/bin/ansible-connection
@@ -271,6 +271,8 @@ def main():
if rc == 0:
process.run()
+ else:
+ process.shutdown()
sys.exit(rc)