aboutsummaryrefslogtreecommitdiff
path: root/libXau/AuLock.c
diff options
context:
space:
mode:
Diffstat (limited to 'libXau/AuLock.c')
-rw-r--r--libXau/AuLock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libXau/AuLock.c b/libXau/AuLock.c
index 1eab79ae4..a816b2454 100644
--- a/libXau/AuLock.c
+++ b/libXau/AuLock.c
@@ -81,7 +81,7 @@ long dead)
if (creat_fd == -1) {
creat_fd = open (creat_name, O_WRONLY | O_CREAT | O_EXCL, 0600);
if (creat_fd == -1) {
- if (errno != EACCES)
+ if (errno != EACCES && errno != EEXIST)
return LOCK_ERROR;
} else
(void) close (creat_fd);