=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/sndiod/file.c,v retrieving revision 1.20 retrieving revision 1.21 diff -c -r1.20 -r1.21 *** src/usr.bin/sndiod/file.c 2016/01/18 11:41:13 1.20 --- src/usr.bin/sndiod/file.c 2016/05/25 05:37:12 1.21 *************** *** 1,4 **** ! /* $OpenBSD: file.c,v 1.20 2016/01/18 11:41:13 ratchov Exp $ */ /* * Copyright (c) 2008-2012 Alexandre Ratchov * --- 1,4 ---- ! /* $OpenBSD: file.c,v 1.21 2016/05/25 05:37:12 ratchov Exp $ */ /* * Copyright (c) 2008-2012 Alexandre Ratchov * *************** *** 318,325 **** long long delta_nsec; int nfds, res, timo; - log_flush(); - /* * cleanup zombies */ --- 318,323 ---- *************** *** 355,362 **** 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(":"); --- 353,358 ---- *************** *** 396,401 **** --- 392,398 ---- timo = TIMER_MSEC; } else timo = -1; + log_flush(); res = poll(pfds, nfds, timo); if (res < 0) { if (errno != EINTR) {