aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/common.rs5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/common.rs b/src/common.rs
index 24594a5..977f8ed 100644
--- a/src/common.rs
+++ b/src/common.rs
@@ -156,8 +156,6 @@ pub async fn listen_signal() -> Result<()> {
use hbb_common::tokio::signal::unix::{signal, SignalKind};
tokio::spawn(async {
- let mut s = signal(SignalKind::hangup())?;
- let hangup = s.recv();
let mut s = signal(SignalKind::terminate())?;
let terminate = s.recv();
let mut s = signal(SignalKind::interrupt())?;
@@ -166,9 +164,6 @@ pub async fn listen_signal() -> Result<()> {
let quit = s.recv();
tokio::select! {
- _ = hangup => {
- log::info!("signal hangup");
- }
_ = terminate => {
log::info!("signal terminate");
}