aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/unistd/daemonise.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/unistd/daemonise.c b/src/unistd/daemonise.c
index 90a9ca6..f05e118 100644
--- a/src/unistd/daemonise.c
+++ b/src/unistd/daemonise.c
@@ -220,7 +220,7 @@ int daemonise(const char* name, int flags, ...)
/* Find out which file descriptors not too close. */
- if ((flags & DAEMONISE_KEEP_FDS) == 0)
+ if (flags & DAEMONISE_KEEP_FDS)
{
va_start(args, flags);
while (va_arg(args, int) >= 0)