From 0d143ed7f63f28fafaf6f2d6f46fa20bbb7e4fb7 Mon Sep 17 00:00:00 2001 From: Nathaniel Case Date: Thu, 20 Sep 2018 15:04:30 -0400 Subject: [PATCH] Clean up after ansible-connection if failure occurred in start() (#45929) --- bin/ansible-connection | 2 ++ 1 file changed, 2 insertions(+) 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)