X-Git-Url: https://code.citadel.org/?p=citadel.git;a=blobdiff_plain;f=citadel%2Fsysdep.c;h=fe8afed300531ccc99b2002579f49f0110b0811e;hp=9b1bcfa56b6ad21d430458c937ddcb825df4b32b;hb=e73e0afde89f43dd19d53c380accb2d1877b03f2;hpb=638df7bdf8a26f581e746e00ae2dd3e8adca8c78 diff --git a/citadel/sysdep.c b/citadel/sysdep.c index 9b1bcfa56..fe8afed30 100644 --- a/citadel/sysdep.c +++ b/citadel/sysdep.c @@ -4,7 +4,7 @@ * Here's where we (hopefully) have most parts of the Citadel server that * might need tweaking when run on different operating system variants. * - * Copyright (c) 1987-2019 by the citadel.org team + * Copyright (c) 1987-2021 by the citadel.org team * * This program is open source software; you can redistribute it and/or modify * it under the terms of the GNU General Public License, version 3. @@ -946,17 +946,16 @@ void start_daemon(int unused) { pid_t child = 0; FILE *fp; int do_restart = 0; - current_child = 0; + //if (chdir(ctdl_run_dir) != 0) { + //syslog(LOG_ERR, "%s: %m", ctdl_run_dir); + //} + /* Close stdin/stdout/stderr and replace them with /dev/null. * We don't just call close() because we don't want these fd's * to be reused for other files. */ - if (chdir(ctdl_run_dir) != 0) { - syslog(LOG_ERR, "%s: %m", ctdl_run_dir); - } - child = fork(); if (child != 0) { exit(0);