From 293044fc47f55e8073e6b252c57816cb52bdb3ec Mon Sep 17 00:00:00 2001 From: Frank Lazzarini Date: Thu, 5 Sep 2019 08:13:10 +0200 Subject: [PATCH] Give the process a chance to terminate correctly Refs #660 --- invoke/runners.py | 1 + 1 file changed, 1 insertion(+) diff --git a/invoke/runners.py b/invoke/runners.py index 80862b64c..ce0ae4a86 100644 --- a/invoke/runners.py +++ b/invoke/runners.py @@ -1188,6 +1188,7 @@ def returncode(self): return code # TODO: do we care about WIFSTOPPED? Maybe someday? else: + self.process.wait(timeout=3) return self.process.returncode def stop(self):