summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Hartmeier <dhartmei@cvs.openbsd.org>2003-11-19 19:18:00 +0000
committerDaniel Hartmeier <dhartmei@cvs.openbsd.org>2003-11-19 19:18:00 +0000
commit8f4af550b9424227d786ed07aeb55dd6fbcb64c6 (patch)
treef4a6c5939f502a4d7e07411a329334e6427e401e
parent7329982ce0d435287d229412e1ee30c71d7495b0 (diff)
fix some select/poll conversion breakage, more to come from millert@.
ok millert@
-rw-r--r--usr.sbin/timed/timed/readmsg.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/timed/timed/readmsg.c b/usr.sbin/timed/timed/readmsg.c
index e2613814188..512869eba9e 100644
--- a/usr.sbin/timed/timed/readmsg.c
+++ b/usr.sbin/timed/timed/readmsg.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: readmsg.c,v 1.14 2003/08/19 19:41:21 deraadt Exp $ */
+/* $OpenBSD: readmsg.c,v 1.15 2003/11/19 19:17:59 dhartmei Exp $ */
/*-
* Copyright (c) 1985, 1993 The Regents of the University of California.
@@ -192,7 +192,8 @@ again:
pfd[0].fd = sock;
pfd[0].events = POLLIN;
- if (!poll(pfd, 1, rwait.tv_sec * 1000)) {
+ if (!poll(pfd, 1, rwait.tv_sec * 1000 +
+ rwait.tv_usec / 1000)) {
if (rwait.tv_sec == 0 && rwait.tv_usec == 0)
return(0);
continue;