[Xfce4-commits] [apps/xfce4-screensaver] 50/425: remove daemonizing it isn't needed and it breaks things like GSettings apparently. http://git.gnome.org/browse/gnome-screensaver/commit/?id=c0ad16d66f3d547a9a45818bc193a34c428e977b https://bugzilla.gnome.org/show_bug.cgi?id=644400

noreply at xfce.org noreply at xfce.org
Mon Oct 15 01:48:17 CEST 2018


This is an automated email from the git hooks/post-receive script.

b   l   u   e   s   a   b   r   e       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository apps/xfce4-screensaver.

commit 77ac5c607d0f0562aad4ab9573c4b85003216c0c
Author: Stefano Karapetsas <stefano at karapetsas.com>
Date:   Mon Nov 12 11:53:23 2012 +0100

    remove daemonizing
    it isn't needed and it breaks things like GSettings apparently.
    http://git.gnome.org/browse/gnome-screensaver/commit/?id=c0ad16d66f3d547a9a45818bc193a34c428e977b
    https://bugzilla.gnome.org/show_bug.cgi?id=644400
---
 src/mate-screensaver.c | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/src/mate-screensaver.c b/src/mate-screensaver.c
index cee3a97..34f26c6 100644
--- a/src/mate-screensaver.c
+++ b/src/mate-screensaver.c
@@ -48,7 +48,7 @@ int main(int argc, char **argv)
 	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[] = {
@@ -88,7 +88,7 @@ int main(int argc, char **argv)
 	}
 
 	/* debug to a file if in deamon mode */
-	gs_debug_init(debug, !no_daemon);
+	gs_debug_init(debug, FALSE);
 	gs_debug("initializing mate-screensaver %s", VERSION);
 
 	monitor = gs_monitor_new();
@@ -115,12 +115,6 @@ int main(int argc, char **argv)
 		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);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list