[ConsoleKit] [Patch] console-kit-daemon restart when receiving SIGPOLL on Solaris

Halton Huo Halton.Huo at Sun.COM
Thu Oct 15 20:31:06 PDT 2009


On Thu, 2009-10-15 at 22:01 -0400, Ray Strode wrote:
> Hi,
> 
> > This is Solaris specific patch, won't affect other platform, I'd like to
> > check in to master.
> You're the maintainer of all the existing ifdef __sun solaris specific
> code in ConsoleKit I believe...
> 
> > console-kit-daemon will receive SIGPOLL when VT is switched, this will
> > cause c-k-d exit. It is because the process does not go into
> > handle_vt_active() as we wish.
> >
> > We found that using signal() rather than sigaction() fix this issue.
> That's odd.  Kernel bug? I know for SIGIO you need to do F_SETOWN fcntl,
> maybe that applies here too?
During our Solaris review process, we roll back to use sigaction()
function. The new patch is attached.

I committed this change to master. Along with another Solaris change for
VT tty value.
http://cgit.freedesktop.org/ConsoleKit/commit/?id=909bb5d08a50384ae2a521b80768c283363dbb86
http://cgit.freedesktop.org/ConsoleKit/commit/?id=b00450b3f9284d997e2e25fd470e7df7336f03ec

Thanks,
Halton.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ConsoleKit-05-sol-sigpoll.diff
Type: text/x-patch
Size: 724 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/consolekit/attachments/20091016/316a8f2c/attachment.bin 


More information about the ConsoleKit mailing list