xwayland: Fix typo in open flags for Xorg log file
This commit is contained in:
+1
-1
@@ -251,7 +251,7 @@ create_lockfile(int display, char *lockfile, size_t lsize)
|
|||||||
snprintf(lockfile, lsize, "/tmp/.X%d-lock", display);
|
snprintf(lockfile, lsize, "/tmp/.X%d-lock", display);
|
||||||
fd = open(lockfile, O_WRONLY | O_CLOEXEC | O_CREAT | O_EXCL, 0444);
|
fd = open(lockfile, O_WRONLY | O_CLOEXEC | O_CREAT | O_EXCL, 0444);
|
||||||
if (fd < 0 && errno == EEXIST) {
|
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) {
|
if (fd < 0 || read(fd, pid, 11) != 11) {
|
||||||
weston_log("can't read lock file %s: %s\n",
|
weston_log("can't read lock file %s: %s\n",
|
||||||
lockfile, strerror(errno));
|
lockfile, strerror(errno));
|
||||||
|
|||||||
Reference in New Issue
Block a user