termios.cc: Restore setting of EBADF appropriately throughout

Christopher Faylor cgf-no-personal-reply-please@cygwin.com
Fri Dec 12 19:20:00 GMT 2003

On Fri, Dec 12, 2003 at 01:14:32PM -0600, Brian Ford wrote:
>I noticed this while digging through other serial port problems.  It
>appears to have been lost in version 1.16, although there did not appear
>to be a reason for the loss in that change.  Please let me know if it was
>intentional for some reason that I do not understand.  Thanks.
>2003-12-12  Brian Ford  <ford@vss.fsi.com>
>	* termios.cc: Restore setting of EBADF appropriately throughout.
>	Lost in version 1.16.

I think you've missed the fact that cygheap_fdget sets errno.  That is part of
the reason for its existence.  If it is not doing that, then that's the bug
which needs to be fixed.


More information about the Cygwin-patches mailing list