mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-20 12:52:55 +00:00
igt_core: Refactor igt_stop_helper() to use igt_wait_helper()
Reduce code duplication as the igt_stop_helper can reuse igt_wait_helper() to replace its own waiting routine. Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
+5
-1
@@ -253,8 +253,12 @@ static void load_helper_run(enum load load)
|
||||
|
||||
static void load_helper_stop(void)
|
||||
{
|
||||
int status;
|
||||
|
||||
kill(lh.igt_proc.pid, SIGUSR1);
|
||||
igt_wait_helper(&lh.igt_proc);
|
||||
status = igt_wait_helper(&lh.igt_proc);
|
||||
|
||||
igt_assert(WIFSIGNALED(status) && WTERMSIG(status) == SIGUSR1);
|
||||
}
|
||||
|
||||
static void load_helper_init(void)
|
||||
|
||||
Reference in New Issue
Block a user