Skip to content
Snippets Groups Projects
Commit 62182ef7 authored by Kamil Konieczny's avatar Kamil Konieczny
Browse files

runner/executor: Fix error handling at terminating test


Instead of just returning and leaking memory and file descriptors
inform user about an error which occurred and terminate
gracefully.

Signed-off-by: default avatarKamil Konieczny <kamil.konieczny@linux.intel.com>
Reviewed-by: default avatarJan Sokolowski <jan.sokolowski@intel.com>
Reviewed-by: default avatarRyszard Knop <rk@dragonic.eu>
parent b39b68a0
No related branches found
No related tags found
No related merge requests found
......@@ -1510,8 +1510,12 @@ static int monitor_output(pid_t child,
}
killed = next_kill_signal(killed);
if (!kill_child(killed, child))
return -1;
if (!kill_child(killed, child)) {
errf("Error at terminating test with %s, errno=%d\n",
killed == SIGQUIT ? "SIGQUIT" : "SIGKILL", errno);
killed = -1;
break; /* while */
}
time_killed = time_now;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment