]> sourceware.org Git - glibc.git/commitdiff
Hurd: fix timeout rounding in select
authorSamuel Thibault <samuel.thibault@ens-lyon.org>
Mon, 2 Aug 2010 23:46:12 +0000 (16:46 -0700)
committerRoland McGrath <roland@redhat.com>
Mon, 2 Aug 2010 23:46:12 +0000 (16:46 -0700)
ChangeLog
hurd/hurdselect.c

index 7a90d217412490b97ac9723a7d8316c7d717820b..bd589f7e138d7aed8957124bbea4099faa58f7e4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
+
+       * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
+       when converting to ms.
+
 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
 
        * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
index 544eee9cb5ba2d93edc98a1b93c40daa1074fbd4..a7228f061188122a769b6803e99a084c2b35fb06 100644 (file)
@@ -52,7 +52,7 @@ _hurd_select (int nfds,
   int firstfd, lastfd;
   mach_msg_timeout_t to = (timeout != NULL ?
                           (timeout->tv_sec * 1000 +
-                           timeout->tv_nsec / 1000000) :
+                           (timeout->tv_nsec + 999999) / 1000000) :
                           0);
   struct
     {
This page took 0.04814 seconds and 5 git commands to generate.