1
0
Fork 0

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
This commit is contained in:
Ray Strode 2015-04-23 10:31:25 -04:00
parent 33bfcf56ce
commit a8a5da768a

View file

@ -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);