[LightDM] Building on XStreamOS/illumos

Robert Ancell robert.ancell at gmail.com
Sun Apr 6 18:44:08 PDT 2014


On 29 March 2014 04:47, Gabriele Bulfon <gabriele.bulfon at sonicle.com> wrote:

>
> The problem here, I think is not yet about pam. It's not even arrived at
> pam calls yet.
> LightDM just sits waiting for a SIGUSR1 from X never arriving....
>
> I compared the code from lxdm (currently working, even pam), and I found
> this in lxdm, just
> after spawing X:
>
> g_message("add xserver watch\n");
> for( i = 0; i < 100; i++ )
> {
> if(lxcom_last_sig==SIGINT || lxcom_last_sig==SIGTERM)
> break;
> if((s->dpy=xconn_open(display))!=NULL)
> break;
> g_usleep(50 * 1000);
> //g_message("retry %d\n",i);
> }
>
>
> looks like a loop to check for a signal different from SIGINT||SIGTERM,
> and trying to XOpenDisplay
> for some time, until it works or give up.
>
> Maybe this is a fallback for SIGUSR1 not coming in?
>

You could try lp:~robert-ancell/lightdm/xorg-displayfd - this is another
method of checking if the X server is ready without using SIGUSR1. It
requires Xorg 1.12.

--Robert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/lightdm/attachments/20140407/acc15a68/attachment.html>


More information about the LightDM mailing list