tests/gem_suspend: test debugfs/sysfs reads while s/r

Just a very quick hack cobbled together with /bin/sh and exec. We
can't use system since that does stupid things with singals ... Still
we need to whack the child process pretty hard to get rid of it.

Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
Daniel Vetter
2013-10-10 14:20:43 +02:00
parent 8a9b275b96
commit ffdece38e2
3 changed files with 59 additions and 1 deletions
+2 -1
View File
@@ -1080,7 +1080,8 @@ void igt_stop_helper(struct igt_helper_process *proc)
assert(proc->running);
assert(kill(proc->pid, SIGQUIT) == 0);
assert(kill(proc->pid,
proc->use_SIGKILL ? SIGKILL : SIGQUIT) == 0);
while (waitpid(proc->pid, &status, 0) == -1 &&
errno == -EINTR)
;
+1
View File
@@ -243,6 +243,7 @@ void igt_waitchildren(void);
struct igt_helper_process {
bool running;
bool use_SIGKILL;
pid_t pid;
int id;
};