[gnome-screensaver] Remove daemonizing



commit c0ad16d66f3d547a9a45818bc193a34c428e977b
Author: William Jon McCann <jmccann redhat com>
Date:   Sun Mar 20 21:09:30 2011 -0400

    Remove daemonizing
    
    It isn't needed and it breaks things like GSettings apparently.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=644400

 src/gnome-screensaver.c |   10 ++--------
 1 files changed, 2 insertions(+), 8 deletions(-)
---
diff --git a/src/gnome-screensaver.c b/src/gnome-screensaver.c
index 65d4c45..af4857f 100644
--- a/src/gnome-screensaver.c
+++ b/src/gnome-screensaver.c
@@ -50,7 +50,7 @@ main (int    argc,
         GSMonitor          *monitor;
         GError             *error = NULL;
         static gboolean     show_version = FALSE;
-        static gboolean     no_daemon    = FALSE;
+        static gboolean     no_daemon    = TRUE;
         static gboolean     debug        = FALSE;
         static GOptionEntry entries []   = {
                 { "version", 0, 0, G_OPTION_ARG_NONE, &show_version, N_("Version of this application"), NULL },
@@ -82,8 +82,7 @@ main (int    argc,
                 exit (1);
         }
 
-        /* debug to a file if in deamon mode */
-        gs_debug_init (debug, ! no_daemon);
+        gs_debug_init (debug, FALSE);
         gs_debug ("initializing gnome-screensaver %s", VERSION);
 
         monitor = gs_monitor_new ();
@@ -103,11 +102,6 @@ main (int    argc,
                 exit (1);
         }
 
-        /* Don't close stdout and stderr for now */
-        if (! no_daemon && daemon (0, 1)) {
-                g_error ("Could not daemonize: %s", g_strerror (errno));
-        }
-
         gtk_main ();
 
         g_object_unref (monitor);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]