mirror of
https://github.com/PR0M3TH3AN/Marlin.git
synced 2025-09-09 07:38:50 +00:00
Merge pull request #88 from PR0M3TH3AN/codex/fix-windows-test-github-workflow-failure
Fix windows test workflow error
This commit is contained in:
@@ -73,12 +73,12 @@ fn read_control(path: &Path) -> Result<ControlInfo> {
|
|||||||
Ok(serde_json::from_str(&txt)?)
|
Ok(serde_json::from_str(&txt)?)
|
||||||
}
|
}
|
||||||
|
|
||||||
fn process_alive(pid: u32) -> bool {
|
fn process_alive(_pid: u32) -> bool {
|
||||||
#[cfg(unix)]
|
#[cfg(unix)]
|
||||||
{
|
{
|
||||||
use nix::sys::signal::kill;
|
use nix::sys::signal::kill;
|
||||||
use nix::unistd::Pid;
|
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))]
|
#[cfg(not(unix))]
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user