/*
* Read and write the citadel.config file
*
- * Copyright (c) 1987-2020 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.
exit(CTDLEXIT_LIBCITADEL);
}
- if (chdir(ctdl_bbsbase_dir) != 0) {
- fprintf(stderr,
- "This program could not be started.\nUnable to change directory to %s\nError: %s\n",
- ctdl_bbsbase_dir,
- strerror(errno)
- );
- exit(CTDLEXIT_HOME);
- }
+ //if (chdir(ctdl_bbsbase_dir) != 0) {
+ //fprintf(stderr,
+ //"This program could not be started.\nUnable to change directory to %s\nError: %s\n",
+ //ctdl_bbsbase_dir,
+ //strerror(errno)
+ //);
+ //exit(CTDLEXIT_HOME);
+ //}
memset(&lconfig, 0, sizeof(struct legacy_config));
cfp = fopen(file_citadel_config, "rb");
* 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.
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);