window: ignore EINTR, which mio now propagates
The upgrade to a newer mio version caused the poll method to report EINTR in some cases. We don't need to terminate for those, so suppress it. refs: https://github.com/wez/wezterm/issues/1955
This commit is contained in:
1 parent
39f53161be
commit
021c0a9bcd
2 files changed
+6
No files matched your search
@@ -317,6 +317,9 @@ impl ConnectionOps for WaylandConnection {
|
||||
|
||||
self.flush()?;
|
||||
if let Err(err) = poll.poll(&mut events, timeout) {
|
||||
if err.kind() == std::io::ErrorKind::Interrupted {
|
||||
continue;
|
||||
}
|
||||
bail!("polling for events: {:?}", err);
|
||||
}
|
||||
|
||||
|
||||
@@ -229,6 +229,9 @@ impl ConnectionOps for XConnection {
|
||||
|
||||
self.dispatch_pending_events()?;
|
||||
if let Err(err) = poll.poll(&mut events, None) {
|
||||
if err.kind() == std::io::ErrorKind::Interrupted {
|
||||
continue;
|
||||
}
|
||||
bail!("polling for events: {:?}", err);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user