1
0
mirror of https://github.com/fafhrd91/actix-net synced 2025-06-28 12:10:37 +02:00

server: Don't listen for SIGHUP (#389)

This commit is contained in:
Thales
2021-10-03 22:48:10 -03:00
committed by GitHub
parent 80a362712f
commit c3d697df97
3 changed files with 5 additions and 4 deletions

View File

@ -335,7 +335,6 @@ impl ServerBuilder {
completion: None,
})
}
_ => (),
}
}
ServerCommand::Notify(tx) => {

View File

@ -8,8 +8,6 @@ use crate::server::Server;
#[allow(dead_code)]
#[derive(PartialEq, Clone, Copy, Debug)]
pub(crate) enum Signal {
/// SIGHUP
Hup,
/// SIGINT
Int,
/// SIGTERM
@ -41,7 +39,6 @@ impl Signals {
let sig_map = [
(unix::SignalKind::interrupt(), Signal::Int),
(unix::SignalKind::hangup(), Signal::Hup),
(unix::SignalKind::terminate(), Signal::Term),
(unix::SignalKind::quit(), Signal::Quit),
];