* 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.
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user