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;
|
long long delta_nsec;
|
||||||
int nfds, res, timo;
|
int nfds, res, timo;
|
||||||
|
|
||||||
log_flush();
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* cleanup zombies
|
* cleanup zombies
|
||||||
*/
|
*/
|
||||||
|
@ -355,8 +353,6 @@ file_poll(void)
|
||||||
log_puts("poll:");
|
log_puts("poll:");
|
||||||
pfd = pfds;
|
pfd = pfds;
|
||||||
for (f = file_list; f != NULL; f = f->next) {
|
for (f = file_list; f != NULL; f = f->next) {
|
||||||
if (f->nfds == 0)
|
|
||||||
continue;
|
|
||||||
log_puts(" ");
|
log_puts(" ");
|
||||||
log_puts(f->ops->name);
|
log_puts(f->ops->name);
|
||||||
log_puts(":");
|
log_puts(":");
|
||||||
|
@ -396,6 +392,7 @@ file_poll(void)
|
||||||
timo = TIMER_MSEC;
|
timo = TIMER_MSEC;
|
||||||
} else
|
} else
|
||||||
timo = -1;
|
timo = -1;
|
||||||
|
log_flush();
|
||||||
res = poll(pfds, nfds, timo);
|
res = poll(pfds, nfds, timo);
|
||||||
if (res < 0) {
|
if (res < 0) {
|
||||||
if (errno != EINTR) {
|
if (errno != EINTR) {
|
||||||
|
|
Loading…
Reference in New Issue