From 90eb250e8f07007315445a21519dfb2d52645c0c Mon Sep 17 00:00:00 2001 From: oetiker Date: Sat, 8 Aug 2009 09:34:46 +0000 Subject: [PATCH] Remove PID file later in the cleanup process --kevin git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1883 a5681a0c-68f1-0310-ab6d-d61299d08faa --- program/src/rrd_daemon.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/program/src/rrd_daemon.c b/program/src/rrd_daemon.c index 0e95e903..f0ad729c 100644 --- a/program/src/rrd_daemon.c +++ b/program/src/rrd_daemon.c @@ -2528,7 +2528,6 @@ static int cleanup (void) /* {{{ */ } journal_done(); - remove_pidfile (); free(queue_threads); free(config_base_dir); @@ -2542,6 +2541,8 @@ static int cleanup (void) /* {{{ */ RRDD_LOG(LOG_INFO, "goodbye"); closelog (); + remove_pidfile (); + return (0); } /* }}} int cleanup */ -- 2.30.2