X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=citadel%2Fcitserver.c;h=4a3dc8194b7f555d3be8b1bc14b2242ac0d0a45b;hb=86b8c2044cdc25dff1711458185e514c350ddc69;hp=df8599791b7868b94fdd9e49d1f50c02a349d222;hpb=3cc8a4d20354f4a7eb42af3864d794bad0582d0e;p=citadel.git diff --git a/citadel/citserver.c b/citadel/citserver.c index df8599791..4a3dc8194 100644 --- a/citadel/citserver.c +++ b/citadel/citserver.c @@ -65,7 +65,6 @@ char *unique_session_numbers; int ScheduledShutdown = 0; int do_defrag = 0; time_t server_startup_time; -char pid_file_name[PATH_MAX]; /* * Various things that need to be initialized at startup @@ -75,19 +74,10 @@ void master_startup(void) { unsigned int seed; FILE *urandom; struct ctdlroom qrbuf; - FILE *pidfile_fp; lprintf(CTDL_DEBUG, "master_startup() started\n"); time(&server_startup_time); - /* pid file. If we go FSSTND this should end up in 'localstatedir' */ - snprintf(pid_file_name, sizeof pid_file_name, "./citadel.pid"); - pidfile_fp = fopen(pid_file_name, "w"); - if (pidfile_fp != NULL) { - fprintf(pidfile_fp, "%d\n", (int)getpid()); - fclose(pidfile_fp); - } - lprintf(CTDL_INFO, "Opening databases\n"); open_databases(); @@ -180,7 +170,6 @@ void master_cleanup(int exitcode) { lprintf(CTDL_NOTICE, "citserver: Exiting with status %d\n", exitcode); fflush(stdout); fflush(stderr); - unlink(pid_file_name); exit(exitcode); }