From 45e126f45990269f78ae2daa4d7f6f98b3158abe Mon Sep 17 00:00:00 2001 From: Benoit Foucher Date: Fri, 30 Nov 2012 09:57:57 +0100 Subject: Fixed ICE-5054 - don't rely anymore on exit status for Windows processed killed with Ctrl-Break --- scripts/Expect.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'scripts/Expect.py') diff --git a/scripts/Expect.py b/scripts/Expect.py index f7eafd8cc95..872ea250078 100755 --- a/scripts/Expect.py +++ b/scripts/Expect.py @@ -453,9 +453,8 @@ class Expect (object): self.exitstatus = self.p.wait() - # A Windows application with a negative exit status means - # killed by CTRL_BREAK. Fudge the exit status. - if win32 and self.exitstatus < 0 and self.killed is not None: + # A Windows application killed with CTRL_BREAK. Fudge the exit status. + if win32 and self.killed is not None: self.exitstatus = -self.killed self.p = None self.r.join() -- cgit v1.2.3