Skip to content

Commit c019029

Browse files
fix: guard AI agent proc scan hook for non-Linux builds
1 parent 0a332dc commit c019029

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

agent/src/platform/platform_synchronizer/proc_scan_hook.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ use super::ProcessData;
1818

1919
pub fn proc_scan_hook(_proc_root: &str, _process_datas: &mut Vec<ProcessData>) {
2020
// Enterprise: clean dead AI Agent PIDs and mark alive ones with biz_type
21-
#[cfg(feature = "enterprise")]
21+
#[cfg(all(
22+
feature = "enterprise",
23+
any(target_os = "linux", target_os = "android")
24+
))]
2225
{
2326
use std::collections::HashSet;
2427

0 commit comments

Comments
 (0)