don't fprintf

This commit is contained in:
Omar Polo 2021-02-07 16:10:09 +00:00
parent a64959c99a
commit 3077ce5bee
1 changed files with 1 additions and 1 deletions

View File

@ -1035,7 +1035,7 @@ loop(struct tls *ctx, int sock4, int sock6)
for (;;) {
if ((n = poll(fds, MAX_USERS, INFTIM)) == -1) {
if (errno == EINTR) {
fprintf(stderr, "connected clients: %d\n",
log_info(NULL, "%d connected clients",
connected_clients);
} else
fatal("poll: %s", strerror(errno));