Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion crates/uv/src/commands/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,10 @@ pub(crate) async fn run_to_completion(mut handle: Child) -> anyhow::Result<ExitS
continue;
}

debug!("Received SIGINT, forwarding to child at {child_pid}");
// The shell may still be forwarding these signals, give the child a moment to
// handle that signal before hitting it with another one
debug!("Received SIGINT, forwarding to child at {child_pid} in 200ms");
tokio::time::sleep(std::time::Duration::from_millis(200)).await;
let _ = signal::kill(child_pid, signal::Signal::SIGINT);
},
_ = sigterm_handle.recv() => {
Expand Down
Loading