diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2014-07-24 11:44:45 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2014-07-24 11:52:37 +0100 |
commit | 745945546f7366a413a3a51a37f90caa3a227b1d (patch) | |
tree | f47206a6f4b741d687727e602d8dd76c60d11e9a /lib/igt_core.h | |
parent | bd3cf81e982d191715a68b6432c3820e9ba733ff (diff) |
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>
Diffstat (limited to 'lib/igt_core.h')
-rw-r--r-- | lib/igt_core.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/igt_core.h b/lib/igt_core.h index 0e84e980..2838cb18 100644 --- a/lib/igt_core.h +++ b/lib/igt_core.h @@ -420,7 +420,7 @@ bool __igt_fork_helper(struct igt_helper_process *proc); */ #define igt_fork_helper(proc) \ for (; __igt_fork_helper(proc); exit(0)) -void igt_wait_helper(struct igt_helper_process *proc); +int igt_wait_helper(struct igt_helper_process *proc); void igt_stop_helper(struct igt_helper_process *proc); /* exit handler code */ |