This is the mail archive of the
mailing list for the Cygwin project.
- From: Karel Kulhavy <clock at twibright dot com>
- To: cygwin at cygwin dot com
- Date: Wed, 10 May 2006 15:04:41 +0200
- Subject: tcdrain
It looks like tcdrain in cygwin doesn't wait until data are transmitted,
but just drains the software buffer, and doesn't drain the buffer in the
16550A chip. Can you please confirm that this is really how Cygwin
I got data corrupted because of this because the data rate was switched
before all the old data got transmitted.
If it's this case, I suggest to add a note about this exception into
Doesn't POSIX say "tcdrain() waits until all output written to the
object referred to by fd has been transmitted" (taken from man tcdrain),
in which case the aforementioned behaviour would not be POSIX compliant.
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html