<div dir="ltr">... Why does displayfd imply nolock? That seems strange to me. I consider the .X0-lock files an API that we shouldn't break.<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 20, 2015 at 7:02 AM, Hans de Goede <span dir="ltr"><<a href="mailto:hdegoede@redhat.com" target="_blank">hdegoede@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Currently startx relies on /tmp/.X?-lock being present for automatically<br>
picking a free display number. This does not work if -nolock is used when<br>
starting the server, or if the server is started with -displayfd as -displayfd<br>
implies -nolock.<br>
<br>
This is becoming a problem now that -displayfd is getting used by<br>
display-managers (e.g. gdm), this fixes this by also checking for<br>
/tmp/.X11-unix/X?<br>
<br>
Signed-off-by: Hans de Goede <<a href="mailto:hdegoede@redhat.com">hdegoede@redhat.com</a>><br>
---<br>
startx.cpp | 2 +-<br>
1 file changed, 1 insertion(+), 1 deletion(-)<br>
<br>
diff --git a/startx.cpp b/startx.cpp<br>
index 8520399..fe49996 100644<br>
--- a/startx.cpp<br>
+++ b/startx.cpp<br>
@@ -120,7 +120,7 @@ enable_xauth=1<br>
XCOMM Automatically determine an unused $DISPLAY<br>
d=0<br>
while true ; do<br>
- [ -e /tmp/.X$d-lock ] || break<br>
+ [ -e "/tmp/.X$d-lock" -o -S "/tmp/.X11-unix/X$d" ] || break<br>
d=$(($d + 1))<br>
done<br>
defaultdisplay=":$d"<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.3.3<br>
<br>
_______________________________________________<br>
<a href="mailto:xorg-devel@lists.x.org">xorg-devel@lists.x.org</a>: X.Org development<br>
Archives: <a href="http://lists.x.org/archives/xorg-devel" target="_blank">http://lists.x.org/archives/xorg-devel</a><br>
Info: <a href="http://lists.x.org/mailman/listinfo/xorg-devel" target="_blank">http://lists.x.org/mailman/listinfo/xorg-devel</a></font></span></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"> Jasper<br></div>
</div>