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

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