summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHalton Huo <halton.huo@sun.com>2009-10-16 11:10:37 +0800
committerHalton Huo <halton.huo@sun.com>2009-10-16 11:10:37 +0800
commitb00450b3f9284d997e2e25fd470e7df7336f03ec (patch)
treecbf300e1060848ff59a62490c4ffb2547c932c99
parent909bb5d08a50384ae2a521b80768c283363dbb86 (diff)
Fix bug console-kit-daemon exit when receiving SIGPOLL on Solaris.
Refer to bug http://defect.opensolaris.org/bz/show_bug.cgi?id=11612
-rw-r--r--src/ck-vt-monitor.c2
1 files changed, 2 insertions, 0 deletions
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);