We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2d0ac4 commit 42bfbffCopy full SHA for 42bfbff
crates/libs/kill_tree/src/macos.rs
@@ -35,9 +35,16 @@ pub(crate) async fn get_process_info(process_id: ProcessId) -> Option<ProcessInf
35
return None;
36
}
37
};
38
+ let process_id_sign = match i32::try_from(process_id) {
39
+ Ok(x) => x,
40
+ Err(e) => {
41
+ debug!(error = ?e, process_id, "failed to convert process id");
42
+ return None;
43
+ }
44
+ };
45
let result = unsafe {
46
libproc::proc_pidinfo(
- process_id as i32,
47
+ process_id_sign,
48
proc_pidtbsdinfo_sign,
49
0,
50
std::ptr::addr_of_mut!(proc_bsdinfo).cast::<c_void>(),
0 commit comments