commit b435ee49adfb93277584024129d22122683fce30
parent 193f86e43e4a68910727f2a8a464daecb2372faf
Author: Tobias Bölz <tobias@boelz.eu>
Date: Sat, 7 Oct 2023 18:54:11 +0200
tokio::signal::unix::SignalKind::hangup().as_raw_value() insted of 1
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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])?);
}