summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2013-06-29 18:31:45 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-06-29 18:31:45 +0200
commit26af13f84fe2e1244b91760870d3763f978d3c30 (patch)
tree05ab4d53616304f2c399ba2beecf3630d1bf2462
parent64ff612b81c29de3f808a55f2010e99924a10191 (diff)
lib/drmtest: set default sighandler for QUIT in the signal process
Otherwise the thing doesn't reliably die when run from the piglit framework somehow. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
-rw-r--r--lib/drmtest.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/drmtest.c b/lib/drmtest.c
index aaf7ff26..0a065c0c 100644
--- 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;