From: Daniel Vetter Date: Sat, 29 Jun 2013 16:31:45 +0000 (+0200) Subject: lib/drmtest: set default sighandler for QUIT in the signal process X-Git-Tag: intel-gpu-tools-1.4~348 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=26af13f84fe2e1244b91760870d3763f978d3c30;p=profile%2Fextras%2Fintel-gpu-tools.git 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 --- diff --git a/lib/drmtest.c b/lib/drmtest.c index aaf7ff2..0a065c0 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;