aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@member.fsf.org>2015-12-31 00:07:20 +0100
committerMattias Andrée <maandree@member.fsf.org>2015-12-31 00:07:20 +0100
commit14a910763c7d1464291d91be51ab928cc4ddf771 (patch)
tree8ef3650cd8e17f54cc932510ac7fa2cefaf40c01
parentm bug fix (diff)
downloadslibc-14a910763c7d1464291d91be51ab928cc4ddf771.tar.gz
slibc-14a910763c7d1464291d91be51ab928cc4ddf771.tar.bz2
slibc-14a910763c7d1464291d91be51ab928cc4ddf771.tar.xz
m bug fix
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
-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)