--- a/server/main.c
+++ b/server/main.c
@@ -65,9 +65,11 @@ int			detach_process(t_conf *conf)
       return (0);
       
     }
-  if (! (pidfile = fopen((conf->pidfile == 0)? DEFAULT_PIDFILE: conf->pidfile,  "w")))
+  if (!conf->pidfile)
+    exit (0);
+  else if (! (pidfile = fopen(conf->pidfile, "w")))
     {
-      LOG("Could not open pidfile %s\n", conf->pidfile? conf->pidfile : DEFAULT_PIDFILE);
+      LOG("Could not open pidfile %s\n", conf->pidfile);
       exit (0);
     }
   fprintf(pidfile, "%ld\n", (long) pid);
