From 14a910763c7d1464291d91be51ab928cc4ddf771 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 31 Dec 2015 00:07:20 +0100 Subject: m bug fix MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/unistd/daemonise.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.2.3-70-g09d2