From b5c2e362c3ae4c932f4acdba13e53d80f63b1777 Mon Sep 17 00:00:00 2001 From: David Zeuthen Date: Mon, 2 Apr 2007 18:38:51 -0400 Subject: daemonize properly --- src/main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main.c b/src/main.c index 446b291..fda1249 100644 --- a/src/main.c +++ b/src/main.c @@ -255,8 +255,7 @@ main (int argc, ck_debug_init (debug, ! no_daemon); 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)); } -- cgit