From a8a5da768a1fa5b9baa3af6e604859531952b513 Mon Sep 17 00:00:00 2001 From: Ray Strode Date: Thu, 23 Apr 2015 10:31:25 -0400 Subject: [PATCH] xwayland: don't unlink lock file twice in stop function The stop function currently manually constructs the lock filename from the display number and also calls unlink on the same, already known lock filename from the manager struct. This commit gets rid fo the manual construction in favor of the saved lock filename. https://bugzilla.gnome.org/show_bug.cgi?id=748380 --- src/wayland/meta-xwayland.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/wayland/meta-xwayland.c b/src/wayland/meta-xwayland.c index aec151992..bd7629980 100644 --- a/src/wayland/meta-xwayland.c +++ b/src/wayland/meta-xwayland.c @@ -529,8 +529,6 @@ meta_xwayland_stop (MetaXWaylandManager *manager) { char path[256]; - snprintf (path, sizeof path, "/tmp/.X%d-lock", manager->display_index); - unlink (path); snprintf (path, sizeof path, "/tmp/.X11-unix/X%d", manager->display_index); unlink (path);