summaryrefslogtreecommitdiff
path: root/usr.bin/sndiod/file.c
diff options
context:
space:
mode:
authorAlexandre Ratchov <ratchov@cvs.openbsd.org>2015-08-27 07:38:39 +0000
committerAlexandre Ratchov <ratchov@cvs.openbsd.org>2015-08-27 07:38:39 +0000
commit57b38938e6435321b3fa82a5a7de4b5a3354c20b (patch)
treec3ed7bf1b62c577bd40fa9f952b2ba32a10990f0 /usr.bin/sndiod/file.c
parent43cebe21cf3d153e241e945835dace518c0e31f3 (diff)
backout previous for now, as it causes me portability problems
Diffstat (limited to 'usr.bin/sndiod/file.c')
-rw-r--r--usr.bin/sndiod/file.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/sndiod/file.c b/usr.bin/sndiod/file.c
index 939cb5440a1..328d0fa9cec 100644
--- a/usr.bin/sndiod/file.c
+++ b/usr.bin/sndiod/file.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: file.c,v 1.14 2015/08/11 16:49:50 ratchov Exp $ */
+/* $OpenBSD: file.c,v 1.15 2015/08/27 07:38:38 ratchov Exp $ */
/*
* Copyright (c) 2008-2012 Alexandre Ratchov <alex@caoua.org>
*
@@ -383,7 +383,8 @@ file_poll(void)
/*
* 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.
+ * no timeouts scheduled, then call poll(2) with infinite
+ * timeout (i.e -1).
*/
#ifdef DEBUG
clock_gettime(CLOCK_MONOTONIC, &sleepts);
@@ -395,7 +396,7 @@ file_poll(void)
if (timo < TIMER_MSEC)
timo = TIMER_MSEC;
} else
- timo = INFTIM;
+ timo = -1;
res = poll(pfds, nfds, timo);
if (res < 0) {
if (errno != EINTR)