Blob Blame History Raw
diff --git a/src/main.c b/src/main.c
index 446b291..9ae9e10 100644
--- a/src/main.c
+++ b/src/main.c
@@ -256,7 +256,7 @@ main (int    argc,
         ck_debug ("initializing console-kit-daemon %s", VERSION);
 
         /* Don't close stdout and stderr for now */
-        if (! no_daemon && daemon (0, 1)) {
+        if (! no_daemon && daemon (0, 0)) {
                 g_error ("Could not daemonize: %s", g_strerror (errno));
         }