diff options
Diffstat (limited to 'winsup/cygwin/select.cc')
-rw-r--r-- | winsup/cygwin/select.cc | 4 |
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) |