mirror of
https://github.com/alacritty/alacritty.git
synced 2025-07-31 22:03:40 -04:00
Handle PTY EIO error for Rust 1.55+
`ErrorKind::Other` no longer includes `EIO` since Rust 1.55: https://blog.rust-lang.org/2021/09/09/Rust-1.55.0.html#stdioerrorkind-variants-updated It was not precise enough from the very beginning, as the comment says that only EIO should be hidden, while the code was any uncategorised errors.
This commit is contained in:
parent
fb1b7f6007
commit
58985a4dcb
1 changed files with 1 additions and 1 deletions
|
@ -394,7 +394,7 @@ where
|
|||
// This sucks, but checking the process is either racy or
|
||||
// blocking.
|
||||
#[cfg(target_os = "linux")]
|
||||
if err.kind() == ErrorKind::Other {
|
||||
if err.raw_os_error() == Some(libc::EIO) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue