When pressing ctrl+c on windows to kill a NX command (eg: a dev server), it leaves all of the sub-processes (node, esbuild, vite, etc) running.
Expected Behavior
When pressing ctrl+c on windows to kill a NX command (eg: a dev server), it should kill all of the processes which were created.
GitHub Repo
No response
Steps to Reproduce
Run a NX command which uses the nx:run-commands executor
Kill the command in the terminal with ctrl+c
Check Windows Task Manager to see that the process that was started is still running (this is easiest to see if the first process starts a server on a port since the second run will now fail since that port is still in-use)
Current Behavior
When pressing ctrl+c on windows to kill a NX command (eg: a dev server), it leaves all of the sub-processes (node, esbuild, vite, etc) running.
Expected Behavior
When pressing ctrl+c on windows to kill a NX command (eg: a dev server), it should kill all of the processes which were created.
GitHub Repo
No response
Steps to Reproduce
nx:run-commands
executorNx Report
Failure Logs
Package Manager Version
No response
Operating System
Additional Information
This is the commit which broke it: https://github.com/nrwl/nx/pull/28073
This is the NodeJS reference for why it's broken: https://github.com/nodejs/node/issues/29837#issuecomment-538438824