diff options
author | Tobias Bölz <[email protected]> | 2023-10-07 18:54:11 +0200 |
---|---|---|
committer | Mathijs van Veluw <[email protected]> | 2023-10-21 17:14:03 +0200 |
commit | b435ee49adfb93277584024129d22122683fce30 (patch) | |
tree | c11bfb746e8b0e50dc4716860a81a879ed42e2dd /src | |
parent | 193f86e43e4a68910727f2a8a464daecb2372faf (diff) | |
download | vaultwarden-b435ee49adfb93277584024129d22122683fce30.tar.gz vaultwarden-b435ee49adfb93277584024129d22122683fce30.zip |
tokio::signal::unix::SignalKind::hangup().as_raw_value() insted of 1
Diffstat (limited to 'src')
-rw-r--r-- | src/main.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index 52e14593..6c3593df 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])?); } |