diff options
author | David Zeuthen <davidz@redhat.com> | 2007-04-02 18:38:51 -0400 |
---|---|---|
committer | David Zeuthen <davidz@redhat.com> | 2007-04-02 18:38:51 -0400 |
commit | b5c2e362c3ae4c932f4acdba13e53d80f63b1777 (patch) | |
tree | 6d0ca179bbb165ea59bb0cdc7c1ad93bb74aba47 /src | |
parent | b57d5c11612dbb896c53d65c01104bae586f6e17 (diff) |
daemonize properly
Diffstat (limited to 'src')
-rw-r--r-- | src/main.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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)); } |