Skip to content

Commit

Permalink
windows compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
aspect committed Dec 27, 2023
1 parent 3377fe5 commit 7ef68d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/runtime/services/kaspa/daemon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@ impl super::Kaspad for Daemon {
_ = task_ctl.request.recv().fuse() => {
if this.inner.termination_method == TerminationMethod::Sigterm && is_unix {
let pid = this.inner.pid.lock().unwrap();
if let Some(pid) = *pid {
if let Some(_pid) = *pid {
#[cfg(unix)]
this.sigterm(pid);
this.sigterm(_pid);
}
} else if let Err(err) = child.start_kill() {
println!("kaspa daemon start_kill error: {:?}", err);
Expand Down

0 comments on commit 7ef68d6

Please sign in to comment.