On 1/21/2021 3:26 PM, Bruno Haible wrote:
Ken Brown wrote:Thanks for the report. I've submitted a patch that fixes this:https://cygwin.com/pipermail/cygwin-patches/2021q1/010995.htmlThanks. EBADF is the more "proper" errno value here, for fd < 0. But glibc produces errno ENOTTY in this case; so it should be acceptable too.
I thought EBADF made more sense too, but Cygwin generally tries to emulate Linux. We'll see what Corinna thinks.
Ken