=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/sndiod/file.c,v retrieving revision 1.14 retrieving revision 1.15 diff -c -r1.14 -r1.15 *** src/usr.bin/sndiod/file.c 2015/08/11 16:49:50 1.14 --- src/usr.bin/sndiod/file.c 2015/08/27 07:38:38 1.15 *************** *** 1,4 **** ! /* $OpenBSD: file.c,v 1.14 2015/08/11 16:49:50 ratchov Exp $ */ /* * Copyright (c) 2008-2012 Alexandre Ratchov * --- 1,4 ---- ! /* $OpenBSD: file.c,v 1.15 2015/08/27 07:38:38 ratchov Exp $ */ /* * Copyright (c) 2008-2012 Alexandre Ratchov * *************** *** 383,389 **** /* * Sleep. Calculate the number off milliseconds poll(2) must * wait before the timo_update() needs to be called. If there're ! * no timeouts scheduled, then call poll(2) with INFTIM timeout. */ #ifdef DEBUG clock_gettime(CLOCK_MONOTONIC, &sleepts); --- 383,390 ---- /* * Sleep. Calculate the number off milliseconds poll(2) must * wait before the timo_update() needs to be called. If there're ! * no timeouts scheduled, then call poll(2) with infinite ! * timeout (i.e -1). */ #ifdef DEBUG clock_gettime(CLOCK_MONOTONIC, &sleepts); *************** *** 395,401 **** if (timo < TIMER_MSEC) timo = TIMER_MSEC; } else ! timo = INFTIM; res = poll(pfds, nfds, timo); if (res < 0) { if (errno != EINTR) --- 396,402 ---- if (timo < TIMER_MSEC) timo = TIMER_MSEC; } else ! timo = -1; res = poll(pfds, nfds, timo); if (res < 0) { if (errno != EINTR)