diff --git a/core/src/app.rs b/core/src/app.rs index d102caa..32b841e 100644 --- a/core/src/app.rs +++ b/core/src/app.rs @@ -372,7 +372,7 @@ cfg_if! { pub fn try_set_fd_limit(limit: u64) -> std::io::Result { cfg_if::cfg_if! { if #[cfg(target_os = "windows")] { - Ok(rlimit::setmaxstdio(limit as u32)?.map(|v| v as u64)) + Ok(rlimit::setmaxstdio(limit as u32).map(|v| v as u64)) } else if #[cfg(unix)] { rlimit::increase_nofile_limit(limit) } diff --git a/core/src/runtime/services/kaspa/daemon.rs b/core/src/runtime/services/kaspa/daemon.rs index f5c3e57..f1c6766 100644 --- a/core/src/runtime/services/kaspa/daemon.rs +++ b/core/src/runtime/services/kaspa/daemon.rs @@ -103,6 +103,7 @@ impl super::Kaspad for Daemon { if this.inner.termination_method == TerminationMethod::Sigterm && is_unix { let pid = this.inner.pid.lock().unwrap(); if let Some(pid) = *pid { + #[cfg(unix)] this.sigterm(pid); } } else if let Err(err) = child.start_kill() {