summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2013-09-11 15:46:43 +0200
committerDaniel Vetter <daniel.vetter@ffwll.ch>2013-09-11 15:46:43 +0200
commit212de08d0fd679069886d673fb719582f597503c (patch)
treea46b2cbb717d182ebe9391303a250b96366ddd03 /lib
parent661f252f7e3ccb8fe936f2582d234408b8bb4764 (diff)
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>
Diffstat (limited to 'lib')
-rw-r--r--lib/drmtest.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/drmtest.c b/lib/drmtest.c
index 0d4aa5561..9d4c5dac0 100644
--- a/lib/drmtest.c
+++ b/lib/drmtest.c
@@ -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)