Skip to content

Commit 28b8175

Browse files
committed
Windows Fix
1 parent 32297f2 commit 28b8175

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ libc = "0.2" # For setpgid and signal constants
2222
tracing-subscriber = { version = "0.3", features = ["env-filter", "fmt"] } # For logging setup
2323
tempfile = "3" # For creating temporary directories in examples/tests
2424
anyhow = "1.0" # For simple error handling in examples
25-
windows-sys = { version = "0.59.0", features = ["Win32"] }
25+
windows-sys = { version = "0.59.0", features = ["Win32", "Win32_System"] }
2626
# Dependency on the library itself (needed for building examples within the workspace)
2727
# This line might not be strictly necessary if cargo automatically detects it,
2828
# but explicitly listing it can sometimes help.

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ async fn handle_timeout_event(
275275
#[cfg(unix)]
276276
let pid = Pid::from_raw(pid_u32 as i32);
277277
#[cfg(windows)]
278-
let pid = HANDLE::from(pid_u32 as i32);
278+
let pid = HANDLE::from(pid_u32 as *mut c_void);
279279
// Send SIGKILL to the entire process group.
280280
// killpg takes the PID of any process in the group (usually the leader)
281281
// and signals the entire group associated with that process.

0 commit comments

Comments
 (0)