hurd: Fix _hurd_select for single fd sets
commit4b068090a0062500e4a254a98f5cd8a7d2c3c435
authorRichard Braun <rbraun@sceen.net>
Thu, 29 Aug 2019 22:58:14 +0000 (30 00:58 +0200)
committerSamuel Thibault <samuel.thibault@ens-lyon.org>
Thu, 29 Aug 2019 22:59:10 +0000 (30 00:59 +0200)
treee20281f981b957f625e1df3009aac9cc2dd73d3f
parent23c1c256ae7b0f010d0fcaff60682b620887b164
hurd: Fix _hurd_select for single fd sets

The function attempts to optimize this case by performing one IPC system
call with the timeout included among the parameters, but in the absence
of a reply, it will call mach_msg again with the same timeout later,
effectively doubling the total timeout of the select/poll call.

Remove this optimization for the time being.

* hurd/hurdselect.c (_hurd_select): Always call __io_select with no
timeout.
ChangeLog
hurd/hurdselect.c