summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorNathaniel Case <this.is@nathanielca.se>2018-09-20 15:04:30 -0400
committerGitHub <noreply@github.com>2018-09-20 15:04:30 -0400
commit0d143ed7f63f28fafaf6f2d6f46fa20bbb7e4fb7 (patch)
tree0cfd8a7a9f0e403db75fe41fae546e7569dadbb2 /bin
parentacac001742a42786db0ef1b2130deef5ab8e8fce (diff)
downloadansible-0d143ed7f63f28fafaf6f2d6f46fa20bbb7e4fb7.tar.gz
Clean up after ansible-connection if failure occurred in start() (#45929)
Diffstat (limited to 'bin')
-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)