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