-
-
Notifications
You must be signed in to change notification settings - Fork 117
Open
Labels
Description
Short: stopping gradle execution on Windows from command line by pressing Ctrl-C
doesn't lead to stopping node.exe
subprocess on Windows.
Steps to reproduce:
- Create project with webpack
- Configure
start
atpackage.json
script via:
"scripts": {
"start": "webpack-dev-server --open --config webpack.dev.js"
}
- Create
npmStart
task via gradle kts script:
tasks {
val npmStart by registering(NpmTask::class) {
/*dependent tasks are skipped for simplification*/
setArgs(listOf("run", "start"))
}
}
- Start local node server via
.\gradlew.bat :npmStart
- Wait for process start (web browser opens)
- Press
Ctrl-C
to stopnode.exe
execution
Expected result:
All child processes under gradle
will be stopped.
Actual result:
Node.exe
process remains. And this process starts to be zombie, e.g. process without parent.
Hint: probably (I'm not sure, this require testing), NpmTask
should be inherited from Exec
, not from DefaultTask. It means that args
field will be inherited from Exec
task, so it will be fully configurable via user. However next Gradle
tool will be responsible to stop all child tasks.
jGleitz, thSoft, lx0758, drcicoria, aSemy and 6 more