diff options
author | Daniel Hartmeier <dhartmei@cvs.openbsd.org> | 2003-11-19 19:18:00 +0000 |
---|---|---|
committer | Daniel Hartmeier <dhartmei@cvs.openbsd.org> | 2003-11-19 19:18:00 +0000 |
commit | 8f4af550b9424227d786ed07aeb55dd6fbcb64c6 (patch) | |
tree | f4a6c5939f502a4d7e07411a329334e6427e401e /usr.sbin/timed | |
parent | 7329982ce0d435287d229412e1ee30c71d7495b0 (diff) |
fix some select/poll conversion breakage, more to come from millert@.
ok millert@
Diffstat (limited to 'usr.sbin/timed')
-rw-r--r-- | usr.sbin/timed/timed/readmsg.c | 5 |
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; |