diff options
Diffstat (limited to 'src/daemon.c')
-rw-r--r-- | src/daemon.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/daemon.c b/src/daemon.c index 671e44a0c..023655979 100644 --- a/src/daemon.c +++ b/src/daemon.c @@ -18,7 +18,8 @@ #include "daemon.h" -#include <stdbool.h> +#include <glib.h> + #include <stdio.h> #include <stdlib.h> #include <unistd.h> @@ -133,7 +134,7 @@ daemonize_set_user(void) } void -daemonize(Options *options) +daemonize(bool detach) { #ifndef WIN32 FILE *fp = NULL; @@ -149,7 +150,7 @@ daemonize(Options *options) } } - if (options->daemon) { + if (detach) { int pid; fflush(NULL); |