X-Git-Url: http://git.dolda2000.com/gitweb/?a=blobdiff_plain;f=daemon%2Fmain.c;fp=daemon%2Fmain.c;h=20aee80ff253fb02007a7631b07bf4e3936b6926;hb=267c4a93c208c648c2b7a433e525b3608c7d7b01;hp=1c19101a2108d177f7e95ba3e050752d4e5dcc28;hpb=5cccc2d5af152f67e5bb77b41403f74403926235;p=doldaconnect.git 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); }