Bruno Haible wrote:
...
>> My thought in having musl skip the test is to maximize performance of
>> fdopen, assuming you might be using it in a situation like on a newly
>> accept()ed network connection where every syscall counts (think
>> multi-threaded httpd). For read-only fdopen, no syscalls are needed,
>
> Sounds reasonable.
>
> Here's a proposed patch to remove gnulib's unintentional requirement.
>
>
> 2012-06-19  Bruno Haible  <br...@clisp.org>
>
>       fdopen: Allow implementations that don't reject invalid fd arguments.
>       * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
>       succeeds.
>       Reported by Rich Felker <dal...@aerifal.cx>.

Thanks, Bruno.
That patch looks perfect.

Reply via email to