1 commit b00450b3f9284d997e2e25fd470e7df7336f03ec 2 Author: Halton Huo <halton.huo (a] sun.com> 3 Date: Fri Oct 16 11:10:37 2009 +0800 4 5 Fix bug console-kit-daemon exit when receiving SIGPOLL on Solaris. 6 Refer to bug http://defect.opensolaris.org/bz/show_bug.cgi?id=11612 7 8 diff --git a/src/ck-vt-monitor.c b/src/ck-vt-monitor.c 9 index 17b8299..67a1f49 100644 10 --- a/src/ck-vt-monitor.c 11 +++ b/src/ck-vt-monitor.c 12 @@ -393,6 +393,8 @@ vt_add_watches (CkVtMonitor *vt_monitor) 13 */ 14 struct sigaction act; 15 act.sa_handler = handle_vt_active; 16 + sigemptyset (&act.sa_mask); 17 + act.sa_flags = 0; 18 sigaction (SIGPOLL, &act, NULL); 19 20 ioctl (vt_monitor->priv->vfd, I_SETSIG, S_MSG); 21