dont change the current dir when daemonize
authorChristian Thaeter <ct@pipapo.org>
Tue, 16 Oct 2007 20:05:27 +0000 (22:05 +0200)
committerChristian Thaeter <ct@pipapo.org>
Tue, 16 Oct 2007 20:05:27 +0000 (22:05 +0200)
src/main.c

index 961c6eb..7540e10 100644 (file)
@@ -172,7 +172,7 @@ main (int argc, char** argv)
         }
     }
 
         }
     }
 
-  if (rxpd->daemonize && daemon(0, 0))
+  if (rxpd->daemonize && daemon(1, 0))
     rxpd_die ("Couldn't daemonize\n");
 
   if (!rxpd->basedir)
     rxpd_die ("Couldn't daemonize\n");
 
   if (!rxpd->basedir)