diff --git a/daemon/cli.c b/daemon/cli.c index a0af6fd9b..4afba45af 100644 --- a/daemon/cli.c +++ b/daemon/cli.c @@ -840,7 +840,6 @@ next: nfd = accept(fd, (struct sockaddr *) &sin, &sinl); if (nfd == -1) { if (errno == EAGAIN || errno == EWOULDBLOCK) { - ilog(LOG_INFO, "Could currently not accept CLI commands. Reason:%s", strerror(errno)); goto cleanup2; } ilog(LOG_INFO, "Accept error:%s", strerror(errno)); @@ -893,6 +892,8 @@ next: cleanup: close(nfd); + /* in case multiple incoming connections exist, read all of them */ + goto next; cleanup2: mutex_unlock(&cli->lock); log_info_clear();