mirror of
https://github.com/nachoparker/dutree
synced 2024-09-26 10:40:56 +02:00
Update signal-hook dependency
This commit is contained in:
parent
44e877d148
commit
27ee44fffc
@ -13,7 +13,7 @@ edition = "2018"
|
|||||||
[dependencies]
|
[dependencies]
|
||||||
getopts = "0.2.21"
|
getopts = "0.2.21"
|
||||||
regex = "1.3.9"
|
regex = "1.3.9"
|
||||||
signal-hook = "0.1.10"
|
signal-hook = "0.3.10"
|
||||||
terminal_size = "0.1.8"
|
terminal_size = "0.1.8"
|
||||||
unicode-width = "0.1.1"
|
unicode-width = "0.1.1"
|
||||||
unicode-segmentation = "1.2.0"
|
unicode-segmentation = "1.2.0"
|
||||||
|
@ -45,7 +45,7 @@ use std::process;
|
|||||||
fn main() {
|
fn main() {
|
||||||
|
|
||||||
// handle SIGPIPE
|
// handle SIGPIPE
|
||||||
let _signal = unsafe { signal_hook::register(signal_hook::SIGPIPE, || process::exit(0)) };
|
let _signal = unsafe { signal_hook::low_level::register(signal_hook::consts::signal::SIGPIPE, || process::exit(0)) };
|
||||||
|
|
||||||
// Parse arguments
|
// Parse arguments
|
||||||
let cfg = match Config::new() {
|
let cfg = match Config::new() {
|
||||||
|
Loading…
Reference in New Issue
Block a user