From 5e647ca1468d50d00d44178d4c5f776523b36605 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20H=C3=B8gsberg?= Date: Sat, 1 Feb 2014 20:44:54 -0800 Subject: [PATCH] xwayland: Fix typo in open flags for Xorg log file --- xwayland/launcher.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xwayland/launcher.c b/xwayland/launcher.c index 8d8e060a..0d496478 100644 --- a/xwayland/launcher.c +++ b/xwayland/launcher.c @@ -251,7 +251,7 @@ create_lockfile(int display, char *lockfile, size_t lsize) snprintf(lockfile, lsize, "/tmp/.X%d-lock", display); fd = open(lockfile, O_WRONLY | O_CLOEXEC | O_CREAT | O_EXCL, 0444); if (fd < 0 && errno == EEXIST) { - fd = open(lockfile, O_CLOEXEC, O_RDONLY); + fd = open(lockfile, O_CLOEXEC | O_RDONLY); if (fd < 0 || read(fd, pid, 11) != 11) { weston_log("can't read lock file %s: %s\n", lockfile, strerror(errno));