From e1bd00725bf942a2b7cf10acf46ec3bab2456aed Mon Sep 17 00:00:00 2001
From: Iustin Pop <iustin@google.com>
Date: Wed, 12 Nov 2008 03:43:12 +0000
Subject: [PATCH] Fix utils.KillProcess

Rev 1978 introduced a breakage on the SIGKILL finall signal to the
process, due to mistyped variable.

Reviewed-by: francis.perron
---
 lib/utils.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/utils.py b/lib/utils.py
index 4c55dc9cf..47fe4cc22 100644
--- a/lib/utils.py
+++ b/lib/utils.py
@@ -1415,7 +1415,7 @@ def KillProcess(pid, signal_=signal.SIGTERM, timeout=30,
   while time.time() < end and IsProcessAlive(pid):
     time.sleep(0.1)
   if IsProcessAlive(pid):
-    _helper(pid, signal.SIGKILL, wait)
+    _helper(pid, signal.SIGKILL, waitpid)
 
 
 def FindFile(name, search_path, test=os.path.exists):
-- 
GitLab