gconf r2580 - in trunk: . gconf



Author: vuntz
Date: Wed Mar 19 13:41:59 2008
New Revision: 2580
URL: http://svn.gnome.org/viewvc/gconf?rev=2580&view=rev

Log:
2008-03-19  Vincent Untz  <vuntz gnome org>

	Unblock signals when starting gconfd, since we might inherit some
	blocked signals from the parent process.
	Fix bug #505488.
	Patch by Javier Uruen Val <juruen warp es>

	* gconf/gconfd.c: (main): unblock all signals


Modified:
   trunk/ChangeLog
   trunk/gconf/gconfd.c

Modified: trunk/gconf/gconfd.c
==============================================================================
--- trunk/gconf/gconfd.c	(original)
+++ trunk/gconf/gconfd.c	Wed Mar 19 13:41:59 2008
@@ -594,6 +594,7 @@
 #ifdef HAVE_SIGACTION
   struct sigaction act;
   sigset_t empty_mask;
+  sigset_t full_mask;
 #endif
   CORBA_Environment ev;
   CORBA_ORB orb;
@@ -675,6 +676,9 @@
   
   /* Session setup */
 #ifdef HAVE_SIGACTION
+  sigfillset (&full_mask);
+  sigprocmask (SIG_UNBLOCK, &full_mask, NULL);
+
   sigemptyset (&empty_mask);
   act.sa_handler = signal_handler;
   act.sa_mask    = empty_mask;



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