chore: bump signal-hook from 0.2.3 to 0.3.10 (#21081)
* chore: bump signal-hook from 0.2.3 to 0.3.10 Bumps [signal-hook](https://github.com/vorner/signal-hook) from 0.2.3 to 0.3.10. - [Release notes](https://github.com/vorner/signal-hook/releases) - [Changelog](https://github.com/vorner/signal-hook/blob/master/CHANGELOG.md) - [Commits](https://github.com/vorner/signal-hook/compare/v0.2.3...v0.3.10) --- updated-dependencies: - dependency-name: signal-hook dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Update apis Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Tyera Eulberg <tyera@solana.com>
This commit is contained in:
parent
9d07746642
commit
855b3ccdc0
|
@ -4131,9 +4131,9 @@ checksum = "43b2853a4d09f215c24cc5489c992ce46052d359b5109343cbafbf26bc62f8a3"
|
|||
|
||||
[[package]]
|
||||
name = "signal-hook"
|
||||
version = "0.2.3"
|
||||
version = "0.3.10"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "844024c8913df6bfbfeee3061075ccc47216a897ac0b54a683dea3dfe16d19af"
|
||||
checksum = "9c98891d737e271a2954825ef19e46bd16bdb98e2746f2eec4f7a4ef7946efd1"
|
||||
dependencies = [
|
||||
"libc",
|
||||
"signal-hook-registry",
|
||||
|
|
|
@ -41,7 +41,7 @@ tokio = { version = "1", features = ["full"] }
|
|||
assert_cmd = "2.0"
|
||||
|
||||
[target."cfg(unix)".dependencies]
|
||||
signal-hook = "0.2.3"
|
||||
signal-hook = "0.3.10"
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
targets = ["x86_64-unknown-linux-gnu"]
|
||||
|
|
|
@ -837,7 +837,7 @@ fn main() {
|
|||
// `register()` is unsafe because the action is called in a signal handler
|
||||
// with the usual caveats. So long as this action body stays empty, we'll
|
||||
// be fine
|
||||
unsafe { signal_hook::register(signal_hook::SIGUSR1, || {}) }.unwrap();
|
||||
unsafe { signal_hook::low_level::register(signal_hook::consts::SIGUSR1, || {}) }.unwrap();
|
||||
}
|
||||
|
||||
const DEFAULT_ROOT_COUNT: &str = "1";
|
||||
|
|
|
@ -56,7 +56,7 @@ jemallocator = {package = "tikv-jemallocator", version = "0.4.1", features = ["u
|
|||
|
||||
[target."cfg(unix)".dependencies]
|
||||
libc = "0.2.105"
|
||||
signal-hook = "0.2.3"
|
||||
signal-hook = "0.3.10"
|
||||
sysctl = "0.4.2"
|
||||
|
||||
[package.metadata.docs.rs]
|
||||
|
|
|
@ -55,7 +55,8 @@ pub fn redirect_stderr_to_file(logfile: Option<String>) -> Option<JoinHandle<()>
|
|||
#[cfg(unix)]
|
||||
{
|
||||
use log::info;
|
||||
let signals = signal_hook::iterator::Signals::new(&[signal_hook::SIGUSR1])
|
||||
let mut signals =
|
||||
signal_hook::iterator::Signals::new(&[signal_hook::consts::SIGUSR1])
|
||||
.unwrap_or_else(|err| {
|
||||
eprintln!("Unable to register SIGUSR1 handler: {:?}", err);
|
||||
exit(1);
|
||||
|
|
Loading…
Reference in New Issue