diff options
author | Jesse Luehrs <doy@tozt.net> | 2022-02-12 13:25:39 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2022-02-12 13:25:39 -0500 |
commit | 7b66471194490a1421001fd51d073cc6d18848ea (patch) | |
tree | 3a53e4bd79748a5eb1d096aea3ad5a52b81b8327 /src/shell/history/pty.rs | |
parent | 42e976aaed4b4a01fc55cb56e789144849807aac (diff) | |
download | nbsh-7b66471194490a1421001fd51d073cc6d18848ea.tar.gz nbsh-7b66471194490a1421001fd51d073cc6d18848ea.zip |
clippy
Diffstat (limited to 'src/shell/history/pty.rs')
-rw-r--r-- | src/shell/history/pty.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/shell/history/pty.rs b/src/shell/history/pty.rs index 0fe0942..5a51e73 100644 --- a/src/shell/history/pty.rs +++ b/src/shell/history/pty.rs @@ -70,9 +70,10 @@ async fn pty_task( event_w.send(Event::PtyOutput).await.unwrap(); } Err(e) => { - if e.raw_os_error() != Some(libc::EIO) { - panic!("pty read failed: {:?}", e); + if e.raw_os_error() == Some(libc::EIO) { + continue; } + panic!("pty read failed: {:?}", e); } }, Res::Write(res) => match res { |