summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/select.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2009-01-22 16:00:58 +0000
committerChristopher Faylor <me@cgf.cx>2009-01-22 16:00:58 +0000
commit9895091d0dfe5b05f86a7c78a8ee3f4a396a0121 (patch)
tree9f50a66ff4317c3725b434714cb0829c3f41b32e /winsup/cygwin/select.cc
parent9cd075756ecdb098db02e90870858d231c3cfbd3 (diff)
downloadcygnal-9895091d0dfe5b05f86a7c78a8ee3f4a396a0121.tar.gz
cygnal-9895091d0dfe5b05f86a7c78a8ee3f4a396a0121.tar.bz2
cygnal-9895091d0dfe5b05f86a7c78a8ee3f4a396a0121.zip
* select.cc (peek_serial): Add hack to allow proper operation with com0com
driver.
Diffstat (limited to 'winsup/cygwin/select.cc')
-rw-r--r--winsup/cygwin/select.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/winsup/cygwin/select.cc b/winsup/cygwin/select.cc
index eceeeafcb..da54da5a1 100644
--- a/winsup/cygwin/select.cc
+++ b/winsup/cygwin/select.cc
@@ -928,6 +928,10 @@ peek_serial (select_record *s, bool)
goto out;
}
+ /* This is apparently necessary for the com0com driver.
+ See: http://cygwin.com/ml/cygwin/2009-01/msg00667.html */
+ SetCommMask (h, 0);
+
SetCommMask (h, EV_RXCHAR);
if (!fh->overlapped_armed)