summaryrefslogtreecommitdiffstats
path: root/daemon
diff options
context:
space:
mode:
authorAndrew Moss <1043609+amoss@users.noreply.github.com>2020-06-04 18:24:04 +0200
committerGitHub <noreply@github.com>2020-06-04 18:24:04 +0200
commitea7d7ea31d2d48730ccaf37e1c96c43f6b255fa8 (patch)
treec2d35dbd066652613702c495f6ae04947accae88 /daemon
parentfecbb89d0c33e2bbe84aa14c0b3204cb60134218 (diff)
Fix Coverity defects 359164, 359165 and 358989. (#9268)
Removed uses of the host lock that could deadlock senders and replaced with the new fine-grained mutex.
Diffstat (limited to 'daemon')
-rw-r--r--daemon/commands.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/daemon/commands.c b/daemon/commands.c
index 8ea868fee1..1944b6c370 100644
--- a/daemon/commands.c
+++ b/daemon/commands.c
@@ -673,7 +673,7 @@ void commands_init(void)
info("Initializing command server.");
for (i = 0 ; i < CMD_TOTAL_COMMANDS ; ++i) {
- uv_mutex_init(&command_lock_array[i]);
+ assert(0 == uv_mutex_init(&command_lock_array[i]));
}
assert(0 == uv_rwlock_init(&exclusive_rwlock));