From: Pierre-Marc Fournier Date: Tue, 9 Jun 2009 21:54:49 +0000 (-0400) Subject: Fix signal handler installation X-Git-Tag: v0.1~181 X-Git-Url: https://git.liburcu.org/?p=urcu.git;a=commitdiff_plain;h=c297c21c6eadc359a358d33e65f9f5419b55b586 Fix signal handler installation The signal handler is not being set in conformance with the sigaction manpage. Because of this, it is probably not set at all. Valgrind also generates an error. This patch fixes this. Signed-off-by: Pierre-Marc Fournier Signed-off-by: Mathieu Desnoyers --- diff --git a/urcu.c b/urcu.c index 7f3de52..c07df2e 100644 --- a/urcu.c +++ b/urcu.c @@ -451,6 +451,8 @@ void urcu_init(void) init_done = 1; act.sa_sigaction = sigurcu_handler; + act.sa_flags = SA_SIGINFO; + sigemptyset(&act.sa_mask); ret = sigaction(SIGURCU, &act, NULL); if (ret) { perror("Error in sigaction");