denoland / deno

A modern runtime for JavaScript and TypeScript.
https://deno.com
MIT License
97.76k stars 5.38k forks source link

deno task doesn't handle signals correctly (repro comparison with npm run attached) #26834

Open mo opened 2 days ago

mo commented 2 days ago

Version: Deno 2.0.6

deno tasks doesn't handle signals properly (but npm scripts do). I created a simple repro for issue here: https://github.com/mo/deno-tasks-signal-issue-repro

./docker-compose.sh and "npm run docker-compose" both exit immediately when CTRL-C is press twice.

However, "deno task docker-compose" will instead exit deno but leave docker compose running for the full 10sec grace period while printing the docker compose progress spinner onto my shell prompt.

Deno task should just work like npm run instead.

dsherret commented 2 days ago

Duplicate of https://github.com/denoland/deno/issues/18445 ?