Merge pull request #88 from PR0M3TH3AN/codex/fix-windows-test-github-workflow-failure

Fix windows test workflow error
This commit is contained in:
thePR0M3TH3AN
2025-05-24 23:01:12 -04:00
committed by GitHub

View File

@@ -73,12 +73,12 @@ fn read_control(path: &Path) -> Result<ControlInfo> {
Ok(serde_json::from_str(&txt)?)
}
fn process_alive(pid: u32) -> bool {
fn process_alive(_pid: u32) -> bool {
#[cfg(unix)]
{
use nix::sys::signal::kill;
use nix::unistd::Pid;
kill(Pid::from_raw(pid as i32), None).is_ok()
kill(Pid::from_raw(_pid as i32), None).is_ok()
}
#[cfg(not(unix))]
{