aboutsummaryrefslogtreecommitdiff
path: root/alacritty_terminal/src/tty
diff options
context:
space:
mode:
authorJames McCoy <jamessan@jamessan.com>2021-11-14 19:56:27 -0500
committerGitHub <noreply@github.com>2021-11-15 00:56:27 +0000
commitb0da035e9ecabfa13438386a6ce87072b7cc3c98 (patch)
tree28307b00002f8cdd287115525eec41200fd4fa09 /alacritty_terminal/src/tty
parente648aae0eb06371e01205bca784096fda2028452 (diff)
downloadalacritty-b0da035e9ecabfa13438386a6ce87072b7cc3c98.tar.gz
alacritty-b0da035e9ecabfa13438386a6ce87072b7cc3c98.zip
Update signal-hook to 0.3.10
Diffstat (limited to 'alacritty_terminal/src/tty')
-rw-r--r--alacritty_terminal/src/tty/unix.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/alacritty_terminal/src/tty/unix.rs b/alacritty_terminal/src/tty/unix.rs
index a52f8329..697cb2d7 100644
--- a/alacritty_terminal/src/tty/unix.rs
+++ b/alacritty_terminal/src/tty/unix.rs
@@ -18,8 +18,8 @@ use mio::unix::EventedFd;
use nix::pty::openpty;
#[cfg(any(target_os = "linux", target_os = "macos"))]
use nix::sys::termios::{self, InputFlags, SetArg};
-use signal_hook as sighook;
-use signal_hook::iterator::Signals;
+use signal_hook::consts as sigconsts;
+use signal_hook_mio::v0_6::Signals;
use crate::config::{Config, Program};
use crate::event::OnResize;
@@ -218,7 +218,7 @@ pub fn new<C>(config: &Config<C>, size: &SizeInfo, window_id: Option<usize>) ->
}
// Prepare signal handling before spawning child.
- let signals = Signals::new(&[sighook::SIGCHLD]).expect("error preparing signal handling");
+ let signals = Signals::new(&[sigconsts::SIGCHLD]).expect("error preparing signal handling");
match builder.spawn() {
Ok(child) => {
@@ -328,7 +328,7 @@ impl EventedPty for Pty {
#[inline]
fn next_child_event(&mut self) -> Option<ChildEvent> {
self.signals.pending().next().and_then(|signal| {
- if signal != sighook::SIGCHLD {
+ if signal != sigconsts::SIGCHLD {
return None;
}