From: fredrik Date: Thu, 26 Jan 2006 02:09:17 +0000 (+0000) Subject: Unlink the PID file when terminating. X-Git-Tag: 0.1~51 X-Git-Url: http://dolda2000.com/gitweb/?a=commitdiff_plain;h=267c4a93c208c648c2b7a433e525b3608c7d7b01;hp=5cccc2d5af152f67e5bb77b41403f74403926235;p=doldaconnect.git 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 --- 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); }