mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-21 14:56:18 +00:00
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>
This commit is contained in:
parent
64ff612b81
commit
26af13f84f
@ -596,9 +596,12 @@ static void sig_handler(int i)
|
|||||||
void drmtest_fork_signal_helper(void)
|
void drmtest_fork_signal_helper(void)
|
||||||
{
|
{
|
||||||
pid_t pid;
|
pid_t pid;
|
||||||
|
sighandler_t oldsig;
|
||||||
|
|
||||||
signal(SIGUSR1, sig_handler);
|
signal(SIGUSR1, sig_handler);
|
||||||
|
oldsig = signal(SIGQUIT, SIG_DFL);
|
||||||
pid = fork();
|
pid = fork();
|
||||||
|
signal(SIGQUIT, oldsig);
|
||||||
if (pid == 0) {
|
if (pid == 0) {
|
||||||
signal_helper_process(getppid());
|
signal_helper_process(getppid());
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user