fix: remove oom prio macos (#3245)

This commit is contained in:
HugoCasa
2024-02-19 12:36:57 +01:00
committed by GitHub
parent 458550f314
commit 6ccca62876
+1 -1
View File
@@ -471,7 +471,7 @@ pub async fn handle_child(
let write_logs_delay = Duration::from_millis(500);
let pid = child.id();
#[cfg(any(target_os = "linux", target_os = "macos"))]
#[cfg(target_os = "linux")]
if let Some(pid) = pid {
//set the highest oom priority
let mut file = File::create(format!("/proc/{pid}/oom_score_adj")).await?;