Unlink the PID file when terminating.
authorfredrik <fredrik@959494ce-11ee-0310-bf91-de5d638817bd>
Thu, 26 Jan 2006 02:09:17 +0000 (02:09 +0000)
committerfredrik <fredrik@959494ce-11ee-0310-bf91-de5d638817bd>
Thu, 26 Jan 2006 02:09:17 +0000 (02:09 +0000)
git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/doldaconnect@580 959494ce-11ee-0310-bf91-de5d638817bd

daemon/main.c

index 1c19101..20aee80 100644 (file)
@@ -562,5 +562,7 @@ int main(int argc, char **argv)
     }
     flog(LOG_INFO, "terminating...");
     terminate();
+    if(pidfile != NULL)
+       unlink(pidfile);
     return(0);
 }