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:
Daniel Vetter 2013-09-11 15:46:43 +02:00
parent 661f252f7e
commit 212de08d0f

View File

@ -1734,8 +1734,8 @@ static int install_sig_handler(int sig_num, sighandler_t handler)
static void restore_sig_handler(int sig_num)
{
if (orig_sig[sig_num].installed)
signal(sig_num, orig_sig[sig_num].handler);
/* Just restore the default so that we properly fall over. */
signal(sig_num, SIG_DFL);
}
static void restore_all_sig_handler(void)