Blame SOURCES/0001-wayland-Do-not-fail-on-stalled-.X11-unix-entries.patch

e47e58
From 9826eae9f091d461bd117c254ba8e255dd084797 Mon Sep 17 00:00:00 2001
e47e58
From: Olivier Fourdan <ofourdan@redhat.com>
e47e58
Date: Fri, 2 Feb 2018 16:35:26 +0100
e47e58
Subject: [PATCH] wayland: Do not fail on stalled .X11-unix entries
e47e58
e47e58
If for whatever reason, there are stalled files in /tmp/.X11-unix/ the
e47e58
bind() to the abstract socket will succeed but not the bind() to the
e47e58
to the UNIX socket.
e47e58
e47e58
This causes gnome-shell/mutter to fail because it cannot start Xwayland
e47e58
(while it could actually, by using a different display).
e47e58
e47e58
In case of failure to bind to the UNIX socket, try the next display
e47e58
instead of failing, to avoid stalled entries in /tmp/.X11-unix.
e47e58
e47e58
Closes: https://gitlab.gnome.org/GNOME/mutter/issues/13
e47e58
---
e47e58
 src/wayland/meta-xwayland.c | 3 ++-
e47e58
 1 file changed, 2 insertions(+), 1 deletion(-)
e47e58
e47e58
diff --git a/src/wayland/meta-xwayland.c b/src/wayland/meta-xwayland.c
e47e58
index 50cfc7c57..ce21fe5ee 100644
e47e58
--- a/src/wayland/meta-xwayland.c
e47e58
+++ b/src/wayland/meta-xwayland.c
e47e58
@@ -458,7 +458,8 @@ choose_xdisplay (MetaXWaylandManager *manager)
e47e58
         {
e47e58
           unlink (lock_file);
e47e58
           close (manager->abstract_fd);
e47e58
-          return FALSE;
e47e58
+          display++;
e47e58
+          continue;
e47e58
         }
e47e58
 
e47e58
       break;
e47e58
-- 
e47e58
2.14.3
e47e58