From 267c4a93c208c648c2b7a433e525b3608c7d7b01 Mon Sep 17 00:00:00 2001 From: fredrik Date: Thu, 26 Jan 2006 02:09:17 +0000 Subject: [PATCH] Unlink the PID file when terminating. git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/doldaconnect@580 959494ce-11ee-0310-bf91-de5d638817bd --- daemon/main.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/daemon/main.c b/daemon/main.c index 1c19101..20aee80 100644 --- a/daemon/main.c +++ b/daemon/main.c @@ -562,5 +562,7 @@ int main(int argc, char **argv) } flog(LOG_INFO, "terminating..."); terminate(); + if(pidfile != NULL) + unlink(pidfile); return(0); } -- 2.11.0