mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-07-03 18:18:44 +08:00
Reduce pty flush wait
This commit is contained in:
parent
e80b936954
commit
aa34351553
@ -62,9 +62,8 @@ pub fn flush_pty(logger: &mut PtyOut) {
|
||||
};
|
||||
// Not sure if flush actually working
|
||||
let _ = pty.flush();
|
||||
std::thread::sleep(Duration::from_millis(100));
|
||||
std::thread::sleep(Duration::from_millis(10));
|
||||
let _ = file.flush();
|
||||
std::thread::sleep(Duration::from_millis(100));
|
||||
}
|
||||
|
||||
pub fn spawn_to_pipe(command: &mut Command, stdout_pipe: &PtyOut) -> Result<Child, Error> {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user