UNIX signal numbers start at 1.
This commit is contained in:
parent
73d77dd416
commit
f52ea0a7eb
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue