<html>
<head>
<base href="https://bugs.freedesktop.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - When kwin_wayland tries to start XWayland, XWayland hangs with endless inet6-related errors"
href="https://bugs.freedesktop.org/show_bug.cgi?id=106573#c13">Comment # 13</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - When kwin_wayland tries to start XWayland, XWayland hangs with endless inet6-related errors"
href="https://bugs.freedesktop.org/show_bug.cgi?id=106573">bug 106573</a>
from <span class="vcard"><a class="email" href="mailto:fourdan@xfce.org" title="Olivier Fourdan <fourdan@xfce.org>"> <span class="fn">Olivier Fourdan</span></a>
</span></b>
<pre>(In reply to Pekka Paalanen from <a href="show_bug.cgi?id=106573#c12">comment #12</a>)
<span class="quote">> (In reply to Olivier Fourdan from <a href="show_bug.cgi?id=106573#c11">comment #11</a>)
> > Xorg/Xwayland will acquire the lock as it always do in the "normal" case, I
> > do not see this as a bug in kwin.
>
> So the error about unix listening socket failing is just a red herring and
> it creates another socket that works? Assuming I guess correctly what the
> messages pointed to in <a href="show_bug.cgi?id=106573#c7">comment #7</a> mean.</span >
That's what “-displayfd” does, it “tries” to open the socket and if it fails,
tries the next one.
So if you have an Xserver already running on :0, you will get those messages
once. If you have 2 xservers on :0 and :1, you'll get those messages twice, so
on and so forth...
Example:
$ Xwayland -displayfd 2 &
_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running
✔ ~/src/wayland/xserver [master ↑·10|…141⚑ 33]
1 ← This is Xwayland writing to stderr (fd 2) the display number it found, I
have already an Xserver running on :0, so it found one available on :1
$ Xwayland -displayfd 2 &
_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running
_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running
2 ← ditto, it found :2 available after trying :0 and :1, hence twice the
messages
$ Xwayland -displayfd 2 &
_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running
_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running
_XSERVTransSocketUNIXCreateListener: ...SocketCreateListener() failed
_XSERVTransMakeAllCOTSServerListeners: server already running
3 ← ditto, it found :3 available after trying :0, :1 and :2 which were already
used...</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>