implement server state/signal handling, depend on tokio-signal

This commit is contained in:
Dietmar Maurer
2019-04-08 12:21:29 +02:00
parent 5a12c0e2fb
commit 7a630df709
5 changed files with 166 additions and 3 deletions

View File

@ -627,6 +627,7 @@ static mut SHUTDOWN_REQUESTED: bool = false;
pub fn request_shutdown() {
unsafe { SHUTDOWN_REQUESTED = true; }
crate::server::server_shutdown();
}
#[inline(always)]