small consistency fixes
Signed-off-by: eternal-flame-AD <yume@yumechi.jp>
This commit is contained in:
parent
d2001e8e4b
commit
ac1f17d84e
2 changed files with 2 additions and 1 deletions
|
@ -822,7 +822,7 @@ pub struct App<C: UpstreamClient, S: Sandboxing> {
|
||||||
pub fn register_cancel_handler() {
|
pub fn register_cancel_handler() {
|
||||||
#[cfg(target_family = "unix")]
|
#[cfg(target_family = "unix")]
|
||||||
unsafe {
|
unsafe {
|
||||||
unsafe fn cancel_handler(_: libc::c_int) {
|
unsafe extern "C" fn cancel_handler(_: libc::c_int) {
|
||||||
log::error!("Received cancel signal, stopping thread");
|
log::error!("Received cancel signal, stopping thread");
|
||||||
libc::pthread_exit(&sandbox::EXIT_TIMEOUT as *const _ as *mut _);
|
libc::pthread_exit(&sandbox::EXIT_TIMEOUT as *const _ as *mut _);
|
||||||
}
|
}
|
||||||
|
|
|
@ -241,6 +241,7 @@ fn main() {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(feature = "metrics")]
|
||||||
{
|
{
|
||||||
let reg = prometheus::default_registry();
|
let reg = prometheus::default_registry();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue