Fix unix compiler error

This commit is contained in:
Caelan Sayler
2024-02-25 22:46:54 +00:00
parent 390bc57c4f
commit cf1472c819
2 changed files with 2 additions and 2 deletions

View File

@@ -5,7 +5,7 @@ use std::{path::Path, path::PathBuf, process::Command as Process, time::Duration
pub fn wait_for_pid_to_exit(pid: u32, ms_to_wait: u32) -> Result<()> {
info!("Waiting {}ms for process ({}) to exit.", ms_to_wait, pid);
let mut handle = waitpid_any::WaitHandle::open(id)?;
let mut handle = waitpid_any::WaitHandle::open(pid)?;
let result = handle.wait_timeout(Duration::from_millis(ms_to_wait as u64))?;
if result.is_some() {
info!("Parent process exited.");

View File

@@ -6,7 +6,7 @@ use std::{path::Path, path::PathBuf, process::Command as Process, time::Duration
pub fn wait_for_pid_to_exit(pid: u32, ms_to_wait: u32) -> Result<()> {
info!("Waiting {}ms for process ({}) to exit.", ms_to_wait, pid);
let mut handle = waitpid_any::WaitHandle::open(id)?;
let mut handle = waitpid_any::WaitHandle::open(pid)?;
let result = handle.wait_timeout(Duration::from_millis(ms_to_wait as u64))?;
if result.is_some() {
info!("Parent process exited.");