From: Art Cancro Date: Tue, 30 Jan 2018 02:42:47 +0000 (-0500) Subject: Fix call to daemon() to make it not change the working directory X-Git-Tag: v939~426 X-Git-Url: https://code.citadel.org/?p=citadel.git;a=commitdiff_plain;h=8aeb2905ca82275eac450ce904da9a2bd80e12f5 Fix call to daemon() to make it not change the working directory --- diff --git a/webcit-ng/main.c b/webcit-ng/main.c index 4270d3c5d..50c26160c 100644 --- a/webcit-ng/main.c +++ b/webcit-ng/main.c @@ -125,7 +125,7 @@ int main(int argc, char **argv) /* Go into the background if we were asked to run as a daemon */ if (running_as_daemon) { - daemon(0, 0); + daemon(1, 0); if (pid_file != NULL) { FILE *pfp = fopen(pid_file, "w"); if (pfp) {