commit | 0749cb22a66a7ceb13de5567d8779e8058f0450d | [log] [tgz] |
---|---|---|
author | gwenn <gtreguier@gmail.com> | Mon May 07 21:18:17 2018 +0200 |
committer | gwenn <gtreguier@gmail.com> | Mon May 07 21:18:17 2018 +0200 |
tree | 7b864d151b4a21863b8785a8fdd84944228b189f | |
parent | 1f3576ec1488ee66749d0d07e1649326809075b7 [diff] |
Fix line refresh when the screen is resized Do not catch interrupted error when SIGWINCH signal is received
diff --git a/src/tty/unix.rs b/src/tty/unix.rs index fb205f9..46ef18e 100644 --- a/src/tty/unix.rs +++ b/src/tty/unix.rs
@@ -84,7 +84,7 @@ }; if res == -1 { let error = io::Error::last_os_error(); - if error.kind() != io::ErrorKind::Interrupted { + if error.kind() != io::ErrorKind::Interrupted || SIGWINCH.load(atomic::Ordering::Relaxed) { return Err(error); } } else {