Fix polling for input data on the master side of a PTY
This commit is contained in:
parent
932485e5ab
commit
84786479c2
@ -198,7 +198,7 @@ impl Pty {
|
||||
fn curr_master_poll(&self) -> PollEvents {
|
||||
let mut events = PollEvents::POLLOUT;
|
||||
if !self.output_buffer.lock().is_empty() {
|
||||
events |= PollEvents::POLLOUT;
|
||||
events |= PollEvents::POLLIN;
|
||||
}
|
||||
events
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user