projects
/
platform
/
upstream
/
intel-gpu-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
64ff612
)
lib/drmtest: set default sighandler for QUIT in the signal process
author
Daniel Vetter
<daniel.vetter@ffwll.ch>
Sat, 29 Jun 2013 16:31:45 +0000
(18:31 +0200)
committer
Daniel Vetter
<daniel.vetter@ffwll.ch>
Sat, 29 Jun 2013 16:31:45 +0000
(18:31 +0200)
Otherwise the thing doesn't reliably die when run from the piglit
framework somehow.
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
lib/drmtest.c
patch
|
blob
|
history
diff --git
a/lib/drmtest.c
b/lib/drmtest.c
index
aaf7ff2
..
0a065c0
100644
(file)
--- a/
lib/drmtest.c
+++ b/
lib/drmtest.c
@@
-596,9
+596,12
@@
static void sig_handler(int i)
void drmtest_fork_signal_helper(void)
{
pid_t pid;
+ sighandler_t oldsig;
signal(SIGUSR1, sig_handler);
+ oldsig = signal(SIGQUIT, SIG_DFL);
pid = fork();
+ signal(SIGQUIT, oldsig);
if (pid == 0) {
signal_helper_process(getppid());
return;