From cf252951221214a24459c262b59745f209fd13e1 Mon Sep 17 00:00:00 2001 From: "google-labs-jules[bot]" <161369871+google-labs-jules[bot]@users.noreply.github.com> Date: Mon, 22 Dec 2025 08:32:21 +0000 Subject: [PATCH] Fix flaky Rust test in eldritch-libsys by using waitpid instead of wait --- implants/lib/eldritch/src/sys/exec_impl.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/implants/lib/eldritch/src/sys/exec_impl.rs b/implants/lib/eldritch/src/sys/exec_impl.rs index c81349fcf..ec65a012b 100644 --- a/implants/lib/eldritch/src/sys/exec_impl.rs +++ b/implants/lib/eldritch/src/sys/exec_impl.rs @@ -11,7 +11,7 @@ use std::process::Command; #[cfg(any(target_os = "linux", target_os = "macos", target_os = "freebsd"))] use { - nix::sys::wait::wait, + nix::sys::wait::waitpid, nix::unistd::{fork, setsid, ForkResult}, std::process::{exit, Stdio}, }; @@ -84,7 +84,7 @@ fn handle_exec( return Err(anyhow::anyhow!("Pid was negative. ERR".to_string())); } - let _ = wait(); + let _ = waitpid(child, None); Ok(CommandOutput { stdout: "".to_string(),