[mutter] xwayland: don't unlink lock file twice in stop function



commit a8a5da768a1fa5b9baa3af6e604859531952b513
Author: Ray Strode <rstrode redhat com>
Date:   Thu Apr 23 10:31:25 2015 -0400

    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 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/src/wayland/meta-xwayland.c b/src/wayland/meta-xwayland.c
index aec1519..bd76299 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);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]