aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server.c b/src/server.c
index c2941c5..f5318fa 100644
--- a/src/server.c
+++ b/src/server.c
@@ -313,7 +313,7 @@ static int server_set_stopping(struct server *server)
server->stopping = 1;
- ret = pthread_cond_signal(&server->server_cv);
+ ret = pthread_cond_broadcast(&server->server_cv);
if (ret) {
pthread_print_errno(ret, "pthread_cond_signal");
goto unlock;