From 212de08d0fd679069886d673fb719582f597503c Mon Sep 17 00:00:00 2001 From: Daniel Vetter Date: Wed, 11 Sep 2013 15:46:43 +0200 Subject: [PATCH] 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 --- lib/drmtest.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/drmtest.c b/lib/drmtest.c index 0d4aa55..9d4c5da 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) -- 2.7.4