This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
Re: termios.cc: Restore setting of EBADF appropriately throughout
- From: Christopher Faylor <cgf-no-personal-reply-please at cygwin dot com>
- To: cygwin-patches at cygwin dot com
- Date: Fri, 12 Dec 2003 14:20:36 -0500
- Subject: Re: termios.cc: Restore setting of EBADF appropriately throughout
- References: <Pine.GSO.4.58.0312121305400.23399@eos>
- Reply-to: cygwin-patches at cygwin dot com
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.
cgf