<div style="font-family: Verdana; font-size: 12;">Thanks Robert, I already solved this: it was not a SIGUSR1 problem, but just had to upgrade</div><div style="font-family: Verdana; font-size: 12;">glib to latest, and then it worked like a charm ;)<br><div><br>
</div><br><hr><br><br><font face="Arial, Helvetica, sans-serif" size="2"><b>Da:</b> Robert Ancell <robert.ancell@gmail.com><br><b>A:</b> Gabriele Bulfon <gabriele.bulfon@sonicle.com> <br><b>Cc:</b> LightDM Mailing List <lightdm@lists.freedesktop.org> Guido Berhoerster <gber@opensuse.org> <br><b>Data:</b> 7 aprile 2014 3.44.08 CEST<br><b>Oggetto:</b> Re: [LightDM] Building on XStreamOS/illumos<br></font><br><br><blockquote style="BORDER-LEFT: #000080 2px solid; MARGIN-LEFT: 5px; PADDING-LEFT: 5px"><div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On 29 March 2014 04:47, Gabriele Bulfon <span dir="ltr"><<a href="mailto:gabriele.bulfon@sonicle.com" target="_blank">gabriele.bulfon@sonicle.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><div style="font-family:Verdana"><br>The problem here, I think is not yet about pam. It's not even arrived at pam calls yet.<br>
LightDM just sits waiting for a SIGUSR1 from X never arriving....<br><br>I compared the code from lxdm (currently working, even pam), and I found this in lxdm, just<br>after spawing X:<br><br> g_message("add xserver watch\n");<br>
for( i = 0; i < 100; i++ )<br> {<br> if(lxcom_last_sig==SIGINT || lxcom_last_sig==SIGTERM)<br> break;<br> if((s->dpy=xconn_open(display))!=NULL)<br>
break;<br> g_usleep(50 * 1000);<br> //g_message("retry %d\n",i);<br> }<br><br><div><br>looks like a loop to check for a signal different from SIGINT||SIGTERM, and trying to XOpenDisplay<br>
for some time, until it works or give up.<br><br>Maybe this is a fallback for SIGUSR1 not coming in?<br></div></div></blockquote><div><br></div><div>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.<br>
</div><div><br></div><div>--Robert</div><div><br></div></div></div></div>
<pre>_______________________________________________
LightDM mailing list
LightDM@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/lightdm
</pre></blockquote></div>