diff options
Diffstat (limited to 'src/unistd')
-rw-r--r-- | src/unistd/daemonise.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/unistd/daemonise.c b/src/unistd/daemonise.c index a3179b3..58cf848 100644 --- a/src/unistd/daemonise.c +++ b/src/unistd/daemonise.c @@ -266,7 +266,8 @@ int daemonise(const char* name, int flags, ...) /* Reset all signal handlers. */ if ((flags & DAEMONISE_NO_SIG_DFL) == 0) for (i = 1; i < _NSIG; i++) - t (signal(i, SIG_DFL) == SIG_ERR); + if (signal(i, SIG_DFL) == SIG_ERR) + t (errno != EINVAL); /* Set signal mask. */ if ((flags & DAEMONISE_KEEP_SIGMASK) == 0) |