]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
Mark as daemonised correctly.
authorRoy Marples <roy@marples.name>
Thu, 4 Sep 2008 15:42:09 +0000 (15:42 +0000)
committerRoy Marples <roy@marples.name>
Thu, 4 Sep 2008 15:42:09 +0000 (15:42 +0000)
bind.c

diff --git a/bind.c b/bind.c
index 22cfd045e6ff23fc25e54593852ed0b9ba23c6de..6e7367fc0fec8877d76c28e1c09520f82efba0da 100644 (file)
--- a/bind.c
+++ b/bind.c
@@ -93,6 +93,7 @@ daemonise(void)
                pidfd = -1;
                exit(EXIT_SUCCESS);
        }
+       daemonised = 1;
        sigprocmask(SIG_SETMASK, &old, NULL);
        return pid;
 }