--- daemon/gkd-main.c.bak	2012-07-17 13:49:35.951945395 -0400
+++ daemon/gkd-main.c	2012-07-17 13:49:38.235208426 -0400
@@ -677,6 +677,12 @@
 
 	if (run_daemonized) {
 
+        /* Become session leader of a new session, process group leader of a new
+         * process group, and detach from the controlling TTY, so that SIGHUP is
+         * not sent to this process when the previous session leader dies
+        */
+        setsid();
+
 		/* Double fork if need to daemonize properly */
 		pid = fork ();
 
