diff options
author | Christopher Faylor <me@cgf.cx> | 2002-11-26 20:32:39 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2002-11-26 20:32:39 +0000 |
commit | b263d1d8d3d815c0c62423b0eba4cbd2c4670d94 (patch) | |
tree | 240efdba1ffb71602c6e7866ee5399ffdb9b55e2 /winsup/cygwin/fhandler_tty.cc | |
parent | b3cc01b02bd728a8b10e362b6f23566cbd451003 (diff) | |
download | cygnal-b263d1d8d3d815c0c62423b0eba4cbd2c4670d94.tar.gz cygnal-b263d1d8d3d815c0c62423b0eba4cbd2c4670d94.tar.bz2 cygnal-b263d1d8d3d815c0c62423b0eba4cbd2c4670d94.zip |
* fhandler_tty.cc (fhandler_pty_master::accept_input): Just use a normal Sleep
or suffer amazing pauses when other tty apps are running.
(fhandler_pty_master::process_slave_output): Ditto.
Diffstat (limited to 'winsup/cygwin/fhandler_tty.cc')
-rw-r--r-- | winsup/cygwin/fhandler_tty.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/fhandler_tty.cc b/winsup/cygwin/fhandler_tty.cc index 82dae85ed..ed1092776 100644 --- a/winsup/cygwin/fhandler_tty.cc +++ b/winsup/cygwin/fhandler_tty.cc @@ -175,7 +175,7 @@ fhandler_pty_master::accept_input () debug_printf ("to_slave pipe is full"); SetEvent (input_available_event); ReleaseMutex (input_mutex); - low_priority_sleep (10); + Sleep (10); rc = WaitForSingleObject (input_mutex, INFINITE); } } @@ -279,7 +279,7 @@ fhandler_pty_master::process_slave_output (char *buf, size_t len, int pktmode_on break; } - low_priority_sleep (10); + Sleep (10); } if (ReadFile (handle, outbuf, rlen, &n, NULL) == FALSE) |