Fix write deadlock with streaming serial devices
Christopher Faylor
cgf-no-personal-reply-please@cygwin.com
Fri Jan 23 15:22:00 GMT 2004
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
More information about the Cygwin-patches
mailing list