Skip to content

Commit

Permalink
Merge branch 'main' into pub-transpile-func
Browse files Browse the repository at this point in the history
  • Loading branch information
theswerd authored Dec 9, 2024
2 parents dbbf86f + 56035f3 commit 0825347
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion cli/task_runner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,13 @@ pub async fn run_future_forwarding_signals<TOutput>(

async fn listen_ctrl_c(kill_signal: KillSignal) {
while let Ok(()) = tokio::signal::ctrl_c().await {
kill_signal.send(deno_task_shell::SignalKind::SIGINT)
// On windows, ctrl+c is sent to the process group, so the signal would
// have already been sent to the child process. We still want to listen
// for ctrl+c here to keep the process alive when receiving it, but no
// need to forward the signal because it's already been sent.
if !cfg!(windows) {
kill_signal.send(deno_task_shell::SignalKind::SIGINT)
}
}
}

Expand Down

0 comments on commit 0825347

Please sign in to comment.