From 94200b430f6edb980bcbdcf5217da8acaf78c48c Mon Sep 17 00:00:00 2001 From: M1 Date: Wed, 18 Mar 2026 12:59:34 +0400 Subject: [PATCH] fix: set kill_on_drop and explicit stdio pipes so curl doesn't inherit parent fds --- apps/monitor/src/runner.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/apps/monitor/src/runner.rs b/apps/monitor/src/runner.rs index f33de13..5fcdfeb 100644 --- a/apps/monitor/src/runner.rs +++ b/apps/monitor/src/runner.rs @@ -178,7 +178,11 @@ async fn run_curl( .arg("--connect-timeout").arg(format!("{:.1}", timeout_secs)) .arg("-X").arg(method) .arg("--user-agent").arg("PingQL-Monitor/0.1") - .arg("--location"); // follow redirects + .arg("--location") // follow redirects + .stdin(std::process::Stdio::null()) + .stdout(std::process::Stdio::piped()) + .stderr(std::process::Stdio::piped()) + .kill_on_drop(true); // kill if future is dropped if let Some(hdrs) = headers { for (k, v) in hdrs {