From 66d11dde22ad441523d10f7267ab960ac9501cd7 Mon Sep 17 00:00:00 2001 From: Henrik Friedrichsen Date: Wed, 11 Oct 2023 15:21:56 +0200 Subject: [PATCH] Handle `SIGHUP` signals While this probably reintroduces the crashes it should handle `SIGHUP` again which currently leads into the `unreachable!()` branch. Fixes #1309 --- src/application.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/application.rs b/src/application.rs index 7c947ec3..e4e7dc4a 100644 --- a/src/application.rs +++ b/src/application.rs @@ -61,7 +61,7 @@ async fn handle_signals(cursive_callback_sink: CbSink) { while let Some(signal) = signals.next().await { info!("Caught {}, cleaning up and closing", signal); match signal { - SIGTERM => { + SIGTERM | SIGHUP => { cursive_callback_sink .send(Box::new(|cursive| { if let Some(data) = cursive.user_data::().cloned() {