patches/ConsoleKit-05-sol-sigpoll.diff
author halton
Fri, 16 Oct 2009 06:57:08 +0000
changeset 16782 7581cf896ffa
parent 16770 a2f8e55428e4
permissions -rw-r--r--
2009-10-16 Halton Huo <[email protected]> * patches/ConsoleKit-05-sol-sigpoll.diff: Updated based on review. Roll back to use sigaction().

commit b00450b3f9284d997e2e25fd470e7df7336f03ec
Author: Halton Huo <[email protected]>
Date:   Fri Oct 16 11:10:37 2009 +0800

    Fix bug console-kit-daemon exit when receiving  SIGPOLL on Solaris.
    Refer to bug http://defect.opensolaris.org/bz/show_bug.cgi?id=11612

diff --git a/src/ck-vt-monitor.c b/src/ck-vt-monitor.c
index 17b8299..67a1f49 100644
--- a/src/ck-vt-monitor.c
+++ b/src/ck-vt-monitor.c
@@ -393,6 +393,8 @@ vt_add_watches (CkVtMonitor *vt_monitor)
          */
         struct sigaction act;
         act.sa_handler = handle_vt_active;
+        sigemptyset (&act.sa_mask);
+        act.sa_flags = 0;
         sigaction (SIGPOLL, &act, NULL);
 
         ioctl (vt_monitor->priv->vfd, I_SETSIG, S_MSG);