From eae5c3587e56abc581af9b59060cd316df2caa08 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Tue, 27 Nov 2018 12:21:18 +0000 Subject: runner: Flip kill args int kill(pid_t pid, int sig)! Fixes: a6b514d242bd ("runner: Be patient for processes to die") Signed-off-by: Chris Wilson Cc: Petri Latvala Reviewed-by: Petri Latvala --- runner/executor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runner') diff --git a/runner/executor.c b/runner/executor.c index 4a0a1219..a7d1f5f8 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; } -- cgit v1.2.3