From 812407304d16dc7769fd7557682bf382e35d743b Mon Sep 17 00:00:00 2001 From: Quentin Armitage Date: Thu, 12 Nov 2015 12:20:54 +0000 Subject: Make signal_ignore mean ignore signal_ignore was setting a signal handler for the signal, but then itaking no action when the signal was received. This is now changed so the signal is actually set to be ignored. Signed-off-by: Quentin Armitage (cherry picked from commit a3aa2189966ba92785b588719817a5d4d83b7cb0) --- lib/signals.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/signals.c b/lib/signals.c index 9d437f8..51d5cbc 100644 --- a/lib/signals.c +++ b/lib/signals.c @@ -156,7 +156,7 @@ signal_set(int signo, void (*func) (void *, int), void *v) void * signal_ignore(int signo) { - return signal_set(signo, NULL, NULL); + return signal_set(signo, (void*)SIG_IGN, NULL); } /* Handlers intialization */ -- 1.7.12.1