Skip to content

Commit

Permalink
tokio::signal::unix::SignalKind::hangup().as_raw_value() insted of 1
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasmboelz authored and BlackDex committed Oct 21, 2023
1 parent 193f86e commit b435ee4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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])?);
}
Expand Down

0 comments on commit b435ee4

Please sign in to comment.