summaryrefslogtreecommitdiff
path: root/alacritty_terminal
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
parente648aae0eb06371e01205bca784096fda2028452 (diff)
downloadalacritty-b0da035e9ecabfa13438386a6ce87072b7cc3c98.tar.gz
alacritty-b0da035e9ecabfa13438386a6ce87072b7cc3c98.zip
Update signal-hook to 0.3.10
Diffstat (limited to 'alacritty_terminal')
-rw-r--r--alacritty_terminal/Cargo.toml3
-rw-r--r--alacritty_terminal/src/tty/unix.rs8
2 files changed, 6 insertions, 5 deletions
diff --git a/alacritty_terminal/Cargo.toml b/alacritty_terminal/Cargo.toml
index c25c4cab..46559d63 100644
--- a/alacritty_terminal/Cargo.toml
+++ b/alacritty_terminal/Cargo.toml
@@ -29,7 +29,8 @@ dirs = "3.0.1"
[target.'cfg(unix)'.dependencies]
nix = "0.22.0"
-signal-hook = { version = "0.1", features = ["mio-support"] }
+signal-hook = "0.3.10"
+signal-hook-mio = { version = "0.2.1", features = ["support-v0_6"] }
[target.'cfg(windows)'.dependencies]
miow = "0.3"
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;
}