This is the mail archive of the
cygwin-patches@cygwin.com
mailing list for the Cygwin project.
Re: Fix write deadlock with streaming serial devices
- From: Christopher Faylor <cgf-no-personal-reply-please at cygwin dot com>
- To: cygwin-patches at cygwin dot com
- Date: Fri, 23 Jan 2004 10:22:51 -0500
- Subject: Re: Fix write deadlock with streaming serial devices
- References: <Pine.GSO.4.58.0401221638310.17483@eos>
- Reply-to: cygwin-patches at cygwin dot com
On Thu, Jan 22, 2004 at 05:07:38PM -0600, Brian Ford wrote:
>2004-01-22 Brian Ford <ford@vss.fsi.com>
>
> * fhandler_serial.cc (fhandler_serial::raw_write): Prevent a
> deadlock when the input buffer overflows.
> (fhandler_serial::raw_read): Correct to print the actual error
> and only call PurgeComm when necessary.
>
>+ DWORD ev;
>+ if (!ClearCommError (get_handle (), &ev, NULL)) goto err;
>+ if (ev) termios_printf ("error detected %x", ev);
Applied with the above two minor non-GNU formatting problems corrected.
Thanks.
cgf