mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-11 16:32:58 +00:00
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:
+2
-1
@@ -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)
|
||||
;
|
||||
|
||||
@@ -243,6 +243,7 @@ void igt_waitchildren(void);
|
||||
|
||||
struct igt_helper_process {
|
||||
bool running;
|
||||
bool use_SIGKILL;
|
||||
pid_t pid;
|
||||
int id;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user