From: Guus Sliepen Date: Tue, 8 Sep 2009 16:21:52 +0000 (+0200) Subject: UNIX signal numbers start at 1. X-Git-Tag: import-tinc-1.1~592^2~21 X-Git-Url: https://git.meshlink.io/?a=commitdiff_plain;h=f52ea0a7eb0383cc2a5f41db1bf24c39424fdb04;p=meshlink UNIX signal numbers start at 1. --- diff --git a/src/process.c b/src/process.c index 28bba02d..d07ce7db 100644 --- a/src/process.c +++ b/src/process.c @@ -587,7 +587,7 @@ void setup_signals(void) /* Set a default signal handler for every signal, errors will be ignored. */ - for(i = 0; i < NSIG; i++) { + for(i = 1; i < NSIG; i++) { if(!do_detach) act.sa_handler = SIG_DFL; else