From: Rob Bradford <[email protected]>
---
src/xwayland/launcher.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/xwayland/launcher.c b/src/xwayland/launcher.c
index 59154a3..ddd9640 100644
--- a/src/xwayland/launcher.c
+++ b/src/xwayland/launcher.c
@@ -247,6 +247,9 @@ create_lockfile(int display, char *lockfile, size_t lsize)
if (fd < 0 || read(fd, pid, 11) != 11) {
weston_log("can't read lock file %s: %s\n",
lockfile, strerror(errno));
+ if (fd >= 0)
+ close (fd);
+
errno = EEXIST;
return -1;
}
--
1.7.11.7
_______________________________________________
wayland-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/wayland-devel