mirror of https://github.com/ericonr/sndio.git
better poll logging
This commit is contained in:
parent
96e51185e0
commit
74bbedaf28
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue