mirror of https://github.com/jackwener/wx-cli.git
chore: gate unix-only daemon helpers
parent
62149f61da
commit
1748cd7290
|
|
@ -8,6 +8,7 @@ use crate::config;
|
||||||
use crate::ipc::{Request, Response};
|
use crate::ipc::{Request, Response};
|
||||||
|
|
||||||
const STARTUP_TIMEOUT_SECS: u64 = 15;
|
const STARTUP_TIMEOUT_SECS: u64 = 15;
|
||||||
|
#[cfg(unix)]
|
||||||
const STOP_TIMEOUT_MS: u64 = 2_000;
|
const STOP_TIMEOUT_MS: u64 = 2_000;
|
||||||
|
|
||||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||||
|
|
|
||||||
|
|
@ -138,6 +138,7 @@ async fn setup_signal_handler() {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(unix)]
|
||||||
fn cleanup_and_exit() {
|
fn cleanup_and_exit() {
|
||||||
cleanup_ipc_files();
|
cleanup_ipc_files();
|
||||||
std::process::exit(0);
|
std::process::exit(0);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue