aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin/fhandler_serial.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2002-11-13 19:36:12 +0000
committerChristopher Faylor <me@cgf.cx>2002-11-13 19:36:12 +0000
commitc0a02a4b42accbc574e84654cd845f8971d6a298 (patch)
tree92e12cd2345ecc26c4f64806e4edea173fc8e99a /winsup/cygwin/fhandler_serial.cc
parente91ec2e3e6fbe82b6b481305a15aec370006baf0 (diff)
downloadnewlib-c0a02a4b42accbc574e84654cd845f8971d6a298.zip
newlib-c0a02a4b42accbc574e84654cd845f8971d6a298.tar.gz
newlib-c0a02a4b42accbc574e84654cd845f8971d6a298.tar.bz2
* miscfuncs.cc (low_priority_sleep): New function. Use throughout where code
is supposed to be giving up time slice. * fhandler_console.cc (fhandler_console::read): Switch button 2/3 output escape sequences to be consistent with xterm.
Diffstat (limited to 'winsup/cygwin/fhandler_serial.cc')
-rw-r--r--winsup/cygwin/fhandler_serial.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler_serial.cc b/winsup/cygwin/fhandler_serial.cc
index fd7abb8..3c95180 100644
--- a/winsup/cygwin/fhandler_serial.cc
+++ b/winsup/cygwin/fhandler_serial.cc
@@ -508,7 +508,7 @@ fhandler_serial::tcflush (int queue)
COMSTAT st;
if (!PurgeComm (get_handle (), PURGE_RXABORT | PURGE_RXCLEAR))
break;
- Sleep (100);
+ low_priority_sleep (100);
if (!ClearCommError (get_handle (), &ev, &st) || !st.cbInQue)
break;
}