From 74bbedaf28058c9f10c853a2947ace28c975c89a Mon Sep 17 00:00:00 2001 From: Alexandre Ratchov Date: Fri, 29 Jan 2016 12:12:19 +0100 Subject: [PATCH] better poll logging --- sndiod/file.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/sndiod/file.c b/sndiod/file.c index ef7e5d4..4eadb15 100644 --- a/sndiod/file.c +++ b/sndiod/file.c @@ -318,8 +318,6 @@ file_poll(void) long long delta_nsec; int nfds, res, timo; - log_flush(); - /* * cleanup zombies */ @@ -355,8 +353,6 @@ file_poll(void) log_puts("poll:"); pfd = pfds; for (f = file_list; f != NULL; f = f->next) { - if (f->nfds == 0) - continue; log_puts(" "); log_puts(f->ops->name); log_puts(":"); @@ -396,6 +392,7 @@ file_poll(void) timo = TIMER_MSEC; } else timo = -1; + log_flush(); res = poll(pfds, nfds, timo); if (res < 0) { if (errno != EINTR) {