diff options
author | Ray Strode <rstrode@redhat.com> | 2015-04-23 10:31:25 -0400 |
---|---|---|
committer | Ray Strode <rstrode@redhat.com> | 2015-04-23 13:51:11 -0400 |
commit | a8a5da768a1fa5b9baa3af6e604859531952b513 (patch) | |
tree | d77d6f49a886f768867ce4e78aab99ae332c4286 | |
parent | 33bfcf56cef8b78fc87c66805e08b73b1028a451 (diff) |
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
-rw-r--r-- | src/wayland/meta-xwayland.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/wayland/meta-xwayland.c b/src/wayland/meta-xwayland.c index aec15199..bd762998 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); |