aboutsummaryrefslogtreecommitdiff
path: root/ChangeLog
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2019-08-30 01:16:37 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2019-08-30 01:16:37 +0200
commitc3010778d5846f0f16278f8e94763efb59cd5761 (patch)
tree6cfc4d253c71e0a1617270f0c04e5cd4fd563983 /ChangeLog
parent90f0f97ccba34efa6ac8d7d4d77db5d473e8da32 (diff)
downloadglibc-c3010778d5846f0f16278f8e94763efb59cd5761.zip
glibc-c3010778d5846f0f16278f8e94763efb59cd5761.tar.gz
glibc-c3010778d5846f0f16278f8e94763efb59cd5761.tar.bz2
hurd: Fix timeout handling in _hurd_select
Rely on servers to implement timeouts, so that very short values (including 0) don't make mach_msg return before valid replies can be received. The purpose of this scheme is to guarantee a full client-server round-trip, whatever the timeout value. This change depends on the new io_select_timeout RPC being implemented by servers. * hurd/Makefile (user-interfaces): Add io_reply and io_request. * hurd/hurdselect.c: Include <sys/time.h>, <hurd/io_request.h> and <limits.h>. (_hurd_select): Replace the call to __io_select with either __io_select_request or __io_select_timeout_request, depending on the timeout. Count the number of ready descriptors (replies for which at least one type bit is set). Implement the timeout locally when there is no file descriptor.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog9
1 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index d2ec5d5..37cbe28 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,5 @@
2019-08-30 Samuel Thibault <samuel.thibault@ens-lyon.org>
-
* sysdeps/mach/hurd/getcwd.c
(_hurd_canonicalize_directory_name_internal): Do not remove the heading
slash if we got an unknown root directory. (__getcwd): Do not fail with
@@ -11,6 +10,14 @@
* hurd/hurdselect.c (_hurd_select): Always call __io_select with no
timeout.
* sysdeps/mach/hurd/setitimer.c (setitimer_locked): Fix preemptor setup.
+ * hurd/Makefile (user-interfaces): Add io_reply and io_request.
+ * hurd/hurdselect.c: Include <sys/time.h>, <hurd/io_request.h> and
+ <limits.h>.
+ (_hurd_select): Replace the call to __io_select with either
+ __io_select_request or __io_select_timeout_request, depending on the
+ timeout. Count the number of ready descriptors (replies for which at
+ least one type bit is set). Implement the timeout locally when there is
+ no file descriptor.
2019-08-29 Mihailo Stojanovic <mihailo.stojanovic@rt-rk.com>