summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorniels <niels@dyne.org>2015-07-30 20:17:24 (GMT)
committer niels <niels@dyne.org>2015-07-30 20:17:24 (GMT)
commit35bb18ef872fddca493b8acb734054dbb193aa86 (patch)
tree902f7f9d51e3ebfbbdd72a9f0f64282c02534b8c
parent1a83fbfbe6e4f2279c61db62a9ff659b486f4663 (diff)
set handler after clearing set
-rw-r--r--veejay-current/veejay-server/veejay/veejay.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/veejay-current/veejay-server/veejay/veejay.c b/veejay-current/veejay-server/veejay/veejay.c
index 91237d3..41a9da4 100644
--- a/veejay-current/veejay-server/veejay/veejay.c
+++ b/veejay-current/veejay-server/veejay/veejay.c
@@ -705,10 +705,11 @@ static void donothing(int sig)
static void sigsegfault_handler(void) {
struct sigaction sigst;
- sigst.sa_sigaction = veejay_backtrace_handler;
sigemptyset(&sigst.sa_mask);
sigaddset(&sigst.sa_mask, SIGSEGV );
sigst.sa_flags = SA_SIGINFO | SA_ONESHOT;
+ sigst.sa_sigaction = veejay_backtrace_handler;
+
if( sigaction(SIGSEGV, &sigst, NULL) == - 1)
veejay_msg(0,"sigaction");
}