RustDesk 2024-01-30 19:02:30 +08:00 committed by GitHub
parent 70242e6eb2
commit 324dfd6a1f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -156,8 +156,6 @@ pub async fn listen_signal() -> Result<()> {
use hbb_common::tokio::signal::unix::{signal, SignalKind}; use hbb_common::tokio::signal::unix::{signal, SignalKind};
tokio::spawn(async { tokio::spawn(async {
let mut s = signal(SignalKind::hangup())?;
let hangup = s.recv();
let mut s = signal(SignalKind::terminate())?; let mut s = signal(SignalKind::terminate())?;
let terminate = s.recv(); let terminate = s.recv();
let mut s = signal(SignalKind::interrupt())?; let mut s = signal(SignalKind::interrupt())?;
@ -166,9 +164,6 @@ pub async fn listen_signal() -> Result<()> {
let quit = s.recv(); let quit = s.recv();
tokio::select! { tokio::select! {
_ = hangup => {
log::info!("signal hangup");
}
_ = terminate => { _ = terminate => {
log::info!("signal terminate"); log::info!("signal terminate");
} }