From 58985a4dcbe464230b5d2566ee68e2d34a1788c8 Mon Sep 17 00:00:00 2001 From: Ilya Bobyr Date: Sat, 18 Sep 2021 18:21:34 -0700 Subject: 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. --- alacritty_terminal/src/event_loop.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'alacritty_terminal/src/event_loop.rs') 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; } -- cgit v1.2.3-54-g00ecf