On 1/21/2021 5:45 PM, Ken Brown wrote:
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.html

Thanks. 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.

Corinna agreed with you but left it up to me, so I went with EBADF.

Thanks.

Ken

Reply via email to