Signals: Always install SIGUSR2 handler
authorBen Gamari <ben@smart-cactus.org>
Sat, 17 Oct 2015 22:07:15 +0000 (00:07 +0200)
committerBen Gamari <ben@smart-cactus.org>
Sat, 17 Oct 2015 22:07:42 +0000 (00:07 +0200)
Even if libdw isn't available.

rts/posix/Signals.c

index 88d1856..89195e2 100644 (file)
@@ -690,7 +690,6 @@ initDefaultHandlers(void)
         sysErrorBelch("warning: failed to install SIGPIPE handler");
     }
 
-#ifdef USE_LIBDW
     // Print a backtrace on SIGUSR2
     action.sa_handler = backtrace_handler;
     sigemptyset(&action.sa_mask);
@@ -698,7 +697,6 @@ initDefaultHandlers(void)
     if (sigaction(SIGUSR2, &action, &oact) != 0) {
         sysErrorBelch("warning: failed to install SIGUSR2 handler");
     }
-#endif
 
     set_sigtstp_action(rtsTrue);
 }