From ea34e252fcd9dc41f5e3a3b68cafe417271a5515 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 31 Dec 2015 18:11:44 +0100 Subject: fix some errors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/client.c') diff --git a/src/client.c b/src/client.c index 9e5600e..415ed79 100644 --- a/src/client.c +++ b/src/client.c @@ -73,7 +73,7 @@ send_command(enum command cmd, size_t n, const char *restrict msg) if (fd == -1) { t ((errno != ENOENT) && (errno != ENOTDIR)); } else { - if (flock(fd, LOCK_EX | LOCK_NB /* and LOCK_DRY if that was ever added... */)) + if (flock(fd, LOCK_SH | LOCK_NB /* and LOCK_DRY if that was ever added... */)) t (start = 0, errno != EWOULDBLOCK); else flock(fd, LOCK_UN); -- cgit v1.2.3-70-g09d2