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]

Fix tcflush hang with streaming devices


This trivial clean up patch fixes the problem reported here:

http://www.cygwin.com/ml/cygwin/2003-10/msg00797.html

Tested and confirmed by the reporter on 98 and 2000sp2.

I tried to find some reason for the previous implimentation via cvs log
and the developers archives, but it seems to have been this way forever.
If anyone knows why this is bad, please speak up.

The reporter is still experiencing "random hangs" in write, but has not
supplied sufficient information for me to track it down.  This problem
existed before and after the patch, so it is unrelated.  I will try to fix
it too if the reporter supplies more info.

2003-12-10  Brian Ford  <ford@vss.fsi.com>

	* fhandler_serial.cc (fhandler_serial::tcflush): Simplify.  Remove
	read polling loop to avoid a hang with streaming devices.

-- 
Brian Ford
Senior Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
Phone: 314-551-8460
Fax:   314-551-8444

Attachment: fhandler_serial.patch
Description: Text document


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