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 {