[igt-dev] [PATCH i-g-t] runner: Flip kill args

Chris Wilson chris at chris-wilson.co.uk
Tue Nov 27 12:22:55 UTC 2018


int kill(pid_t pid, int sig)!

Fixes: a6b514d242bd ("runner: Be patient for processes to die")
Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
Cc: Petri Latvala <petri.latvala at intel.com>
---
 runner/executor.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/runner/executor.c b/runner/executor.c
index 62901d86a..f75efbbc4 100644
--- a/runner/executor.c
+++ b/runner/executor.c
@@ -545,7 +545,7 @@ static int monitor_output(pid_t child,
 				 * forward progress towards exiting (i.e. still
 				 * freeing all of its resources).
 				 */
-				if (kill(0, child) == 0 && !tainted(&taints)) {
+				if (kill(child, 0) == 0 && !tainted(&taints)) {
 					intervals_left =  1;
 					break;
 				}
-- 
2.20.0.rc1



More information about the igt-dev mailing list