https://issues.shibboleth.net/jira/browse/SSPCPP-272
authorScott Cantor <cantor.2@osu.edu>
Mon, 7 Dec 2009 13:58:22 +0000 (13:58 +0000)
committerScott Cantor <cantor.2@osu.edu>
Mon, 7 Dec 2009 13:58:22 +0000 (13:58 +0000)
shibd/shibd.cpp

index 2ac256d..eee5c8b 100644 (file)
@@ -387,7 +387,7 @@ int main(int argc, char *argv[])
             fprintf(stderr, "listener failure during service\n");
             listener->term();
             conf.term();
-            if (pidfile)
+            if (daemonize && pidfile)
                 unlink(pidfile);
             return -3;
         }
@@ -395,7 +395,7 @@ int main(int argc, char *argv[])
     }
 
     conf.term();
-    if (pidfile)
+    if (daemonize && pidfile)
         unlink(pidfile);
     return 0;
 }