diff options
author | Mattias Andrée <maandree@member.fsf.org> | 2015-12-31 18:11:44 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@member.fsf.org> | 2015-12-31 18:11:44 +0100 |
commit | ea34e252fcd9dc41f5e3a3b68cafe417271a5515 (patch) | |
tree | f492e216aedf607fb7bd5b744fc1a6f2b8adb697 /src/client.c | |
parent | m (diff) | |
download | sat-ea34e252fcd9dc41f5e3a3b68cafe417271a5515.tar.gz sat-ea34e252fcd9dc41f5e3a3b68cafe417271a5515.tar.bz2 sat-ea34e252fcd9dc41f5e3a3b68cafe417271a5515.tar.xz |
fix some errors
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
Diffstat (limited to 'src/client.c')
-rw-r--r-- | src/client.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |