aboutsummaryrefslogtreecommitdiffstats
path: root/src/client.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/client.c')
-rw-r--r--src/client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client.c b/src/client.c
index 69f4edd..8912f5b 100644
--- a/src/client.c
+++ b/src/client.c
@@ -71,7 +71,7 @@ send_command(enum command cmd, size_t n, const char *restrict msg)
if (fd == -1) {
t (errno != ENOENT);
} else {
- if (flock(fd, LOCK_EX | LOCK_NB) == -1)
+ if (flock(fd, LOCK_SH | LOCK_NB) == -1)
t (start = 0, errno != EWOULDBLOCK);
else
flock(fd, LOCK_UN);