[commit: ghc] master: Signals: Always install SIGUSR2 handler (d990b5f)
git at git.haskell.org
git at git.haskell.org
Sat Oct 17 22:05:20 UTC 2015
Repository : ssh://git@git.haskell.org/ghc
On branch : master
Link : http://ghc.haskell.org/trac/ghc/changeset/d990b5f6ae0cc22f83032e6dee40790ca9c8567a/ghc
>---------------------------------------------------------------
commit d990b5f6ae0cc22f83032e6dee40790ca9c8567a
Author: Ben Gamari <ben at smart-cactus.org>
Date: Sun Oct 18 00:07:15 2015 +0200
Signals: Always install SIGUSR2 handler
Even if libdw isn't available.
>---------------------------------------------------------------
d990b5f6ae0cc22f83032e6dee40790ca9c8567a
rts/posix/Signals.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/rts/posix/Signals.c b/rts/posix/Signals.c
index 88d1856..89195e2 100644
--- a/rts/posix/Signals.c
+++ b/rts/posix/Signals.c
@@ -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);
}
More information about the ghc-commits
mailing list