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

This commit is contained in:
Dietmar Maurer committed 2019-04-08 13:59:07 +02:00
1 parent 5a12c0e2fb
commit 7a630df709
5 files changed
+166 -3

No files matched your search

+1
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)]