From c297c21c6eadc359a358d33e65f9f5419b55b586 Mon Sep 17 00:00:00 2001 From: Pierre-Marc Fournier Date: Tue, 9 Jun 2009 17:54:49 -0400 Subject: [PATCH 1/1] 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 --- urcu.c | 2 ++ 1 file changed, 2 insertions(+) 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"); -- 2.34.1