Skip to content

Commit

Permalink
Hurd: fix timeout rounding in select
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Thibault authored and Roland McGrath committed Aug 2, 2010
1 parent 73507d3 commit 5a42321
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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):
Expand Down
2 changes: 1 addition & 1 deletion hurd/hurdselect.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit 5a42321

Please sign in to comment.