This is the mail archive of the cygwin-patches@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Fix write deadlock with streaming serial devices


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]