Fix polling for input data on the master side of a PTY

This commit is contained in:
pjht 2024-09-22 11:44:16 -05:00
parent 932485e5ab
commit 84786479c2
Signed by: pjht
GPG Key ID: 7B5F6AFBEC7EE78E

View File

@ -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
}