From b435ee49adfb93277584024129d22122683fce30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20B=C3=B6lz?= Date: Sat, 7 Oct 2023 18:54:11 +0200 Subject: [PATCH] tokio::signal::unix::SignalKind::hangup().as_raw_value() insted of 1 --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 52e1459308..6c3593dfe4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -332,7 +332,7 @@ fn init_logging(level: log::LevelFilter) -> Result<(), fern::InitError> { } #[cfg(not(windows))] { - const SIGHUP: i32 = 1; + const SIGHUP: i32 = tokio::signal::unix::SignalKind::hangup().as_raw_value(); let path = Path::new(&log_file); logger = logger.chain(fern::log_reopen1(path, [SIGHUP])?); }