diff options
author | Ilya Bobyr <ilya.bobyr@gmail.com> | 2021-09-18 18:21:34 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-19 01:21:34 +0000 |
commit | 58985a4dcbe464230b5d2566ee68e2d34a1788c8 (patch) | |
tree | 411bc6bcf73e7169bf38003456b350ba347e886f /alacritty_terminal | |
parent | fb1b7f60071f3c701db004f5634d7ff30a91162f (diff) | |
download | alacritty-58985a4dcbe464230b5d2566ee68e2d34a1788c8.tar.gz alacritty-58985a4dcbe464230b5d2566ee68e2d34a1788c8.zip |
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.
Diffstat (limited to 'alacritty_terminal')
-rw-r--r-- | alacritty_terminal/src/event_loop.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/alacritty_terminal/src/event_loop.rs b/alacritty_terminal/src/event_loop.rs index b0676e4d..b4c0a5e4 100644 --- a/alacritty_terminal/src/event_loop.rs +++ b/alacritty_terminal/src/event_loop.rs @@ -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; } |