Skip to content

Commit

Permalink
chore: Silence clippy about loop that never loops
Browse files Browse the repository at this point in the history
  • Loading branch information
alcroito committed Apr 23, 2024
1 parent 6615940 commit c596b20
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions crates/dyndns/src/signal_handlers.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
use color_eyre::eyre::Result;
use signal_hook::consts::signal::{SIGINT, SIGQUIT, SIGTERM};
use signal_hook::consts::signal::{SIGINT, SIGQUIT, SIGTERM, SIGHUP};
use signal_hook::flag;
use signal_hook::iterator::exfiltrator::WithOrigin;
use signal_hook::iterator::SignalsInfo;
Expand Down Expand Up @@ -227,9 +227,12 @@ impl AppTerminationHandler {
killer_pid
);
match info.signal {
SIGHUP => {
info!("Received signal {}: ignoring because config reloading is not yet supported", info.signal)
}
SIGTERM | SIGQUIT | SIGINT => {
assert!(TERM_SIGNALS.contains(&info.signal));
info!("Starting process termination due to received signal");
info!("Received signal '{}': starting process termination", info.signal);
self.notify_exit();
break;
}
Expand Down

0 comments on commit c596b20

Please sign in to comment.