]> sourceware.org Git - newlib-cygwin.git/commitdiff
* select.cc (peek_serial): Add hack to allow proper operation with com0com
authorChristopher Faylor <me@cgf.cx>
Thu, 22 Jan 2009 16:00:58 +0000 (16:00 +0000)
committerChristopher Faylor <me@cgf.cx>
Thu, 22 Jan 2009 16:00:58 +0000 (16:00 +0000)
driver.

winsup/cygwin/ChangeLog
winsup/cygwin/select.cc

index 11eefb75a6f04a1cec7a8cd60d4b58fe59bfdfb0..bdd910456948012121059a7e20e34ee2763dce92 100644 (file)
@@ -1,3 +1,8 @@
+2009-01-22  Christopher Faylor  <me+cygwin@cgf.cx>
+
+       * select.cc (peek_serial): Add hack to allow proper operation with
+       com0com driver.
+
 2009-01-21  Corinna Vinschen  <corinna@vinschen.de>
 
        Remove USE_SERVER define.  Accommodate throughout.
index eceeeafcbd561812f03ba6e8b866bb51aedd2831..da54da5a1409bfe3829c7a1f3d4474468c95a72c 100644 (file)
@@ -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)
This page took 0.04331 seconds and 5 git commands to generate.