mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-24 08:16:10 +00:00
lib/drmtest: Restore default sighandlers
Forked tests ended up restoring the sighandlers already inherited from the parent, resulting in endless signal loops through our atexit handler. Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
This commit is contained in:
parent
661f252f7e
commit
212de08d0f
@ -1734,8 +1734,8 @@ static int install_sig_handler(int sig_num, sighandler_t handler)
|
|||||||
|
|
||||||
static void restore_sig_handler(int sig_num)
|
static void restore_sig_handler(int sig_num)
|
||||||
{
|
{
|
||||||
if (orig_sig[sig_num].installed)
|
/* Just restore the default so that we properly fall over. */
|
||||||
signal(sig_num, orig_sig[sig_num].handler);
|
signal(sig_num, SIG_DFL);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void restore_all_sig_handler(void)
|
static void restore_all_sig_handler(void)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user