https://bugs.freedesktop.org/show_bug.cgi?id=106573

--- Comment #13 from Olivier Fourdan <four...@xfce.org> ---
(In reply to Pekka Paalanen from comment #12)
> (In reply to Olivier Fourdan from comment #11)
> > 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 comment #7 mean.

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...

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
wayland-bugs mailing list
wayland-bugs@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/wayland-bugs

Reply via email to