From c5b05b5fb0e538e23bc94eb8631d4c0e72725732 Mon Sep 17 00:00:00 2001 From: Dave West Date: Tue, 15 Jan 2008 15:19:09 +0000 Subject: [PATCH] Now citadel.pid contains the pid of the watcher process in case something wants to stop us via the pid file. --- citadel/sysdep.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/citadel/sysdep.c b/citadel/sysdep.c index 92308d948..0cbfec527 100644 --- a/citadel/sysdep.c +++ b/citadel/sysdep.c @@ -887,11 +887,7 @@ void start_daemon(int unused) { else { fp = fopen(file_pid_file, "w"); if (fp != NULL) { - /* - * NB.. The pid file contains the pid of the actual server. - * This is not the pid of the watcher process - */ - fprintf(fp, ""F_PID_T"\n", current_child); + fprintf(fp, ""F_PID_T"\n", getpid()); fclose(fp); } waitpid(current_child, &status, 0); -- 2.30.2