aboutsummaryrefslogtreecommitdiff
path: root/winsup
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2002-11-26 20:32:39 +0000
committerChristopher Faylor <me@cgf.cx>2002-11-26 20:32:39 +0000
commitb263d1d8d3d815c0c62423b0eba4cbd2c4670d94 (patch)
tree240efdba1ffb71602c6e7866ee5399ffdb9b55e2 /winsup
parentb3cc01b02bd728a8b10e362b6f23566cbd451003 (diff)
downloadnewlib-b263d1d8d3d815c0c62423b0eba4cbd2c4670d94.zip
newlib-b263d1d8d3d815c0c62423b0eba4cbd2c4670d94.tar.gz
newlib-b263d1d8d3d815c0c62423b0eba4cbd2c4670d94.tar.bz2
* 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')
-rw-r--r--winsup/cygwin/ChangeLog6
-rw-r--r--winsup/cygwin/fhandler_tty.cc4
-rw-r--r--winsup/cygwin/tty.cc4
3 files changed, 10 insertions, 4 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 8c00bd3..196ade1 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,9 @@
+2002-11-26 Christopher Faylor <cgf@redhat.com>
+
+ * 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.
+
2002-11-25 Pierre Humblet <pierre.humblet@ieee.org>
* passwd.cc (read_etc_passwd): Never add an entry when starting
diff --git a/winsup/cygwin/fhandler_tty.cc b/winsup/cygwin/fhandler_tty.cc
index 82dae85..ed10927 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)
diff --git a/winsup/cygwin/tty.cc b/winsup/cygwin/tty.cc
index 448dfda..242a2a8 100644
--- a/winsup/cygwin/tty.cc
+++ b/winsup/cygwin/tty.cc
@@ -218,12 +218,12 @@ tty_list::allocate_tty (int with_console)
SetConsoleTitle (buf);
for (int times = 0; times < 25; times++)
{
- low_priority_sleep (10);
+ Sleep (10);
if ((console = FindWindow (NULL, buf)))
break;
}
SetConsoleTitle (oldtitle);
- low_priority_sleep (40);
+ Sleep (40);
ReleaseMutex (title_mutex);
if (console == NULL)
{