mirror of
https://github.com/NLnetLabs/routinator.git
synced 2024-05-19 06:50:04 +00:00
Forcefully terminate the server on fatal error.
This commit is contained in:
@ -15,7 +15,6 @@ use std::str::FromStr;
|
||||
use std::time::Duration;
|
||||
use clap::{App, Arg, ArgMatches, SubCommand};
|
||||
use derive_more::From;
|
||||
use futures::future::Future;
|
||||
use log::{error, info, warn};
|
||||
use rpki::resources::AsId;
|
||||
use tempfile::NamedTempFile;
|
||||
@ -419,7 +418,11 @@ impl Server {
|
||||
}
|
||||
}
|
||||
|
||||
unwrap!(runtime.shutdown_now().wait());
|
||||
// XXX This seems to hang indefinitely, with or without the shutdown.
|
||||
// Since we are terminating the process thereafter, anyway, this
|
||||
// may be fine for now.
|
||||
// unwrap!(runtime.shutdown_now().wait());
|
||||
std::process::exit(0);
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user