summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorDavid Zeuthen <davidz@redhat.com>2007-04-02 18:38:51 -0400
committerDavid Zeuthen <davidz@redhat.com>2007-04-02 18:38:51 -0400
commitb5c2e362c3ae4c932f4acdba13e53d80f63b1777 (patch)
tree6d0ca179bbb165ea59bb0cdc7c1ad93bb74aba47 /src/main.c
parentb57d5c11612dbb896c53d65c01104bae586f6e17 (diff)
daemonize properly
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c3
1 files changed, 1 insertions, 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));
}