-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Terminating subprocess on Windows when "running" is flaky #41
Comments
What OS are you using? |
Also can you please provide a complete repro? (ideally as a gist or a zip or tar archive) FTR, the signalling code is here: Lines 272 to 320 in 7294055
|
windows 10 of course |
Ah, yeah you're going to have some issues if the process is not responding to hangup or int signals. |
Why you not use this code in windows platforms? =) This fix works on me: let childProcess = null
estrella.build({
onEnd: () => {
if (childProcess) {
childProcess.kill('SIGINT')
}
childProcess = spawn('node', ['build/index.js'], {
stdio: [process.stdin, process.stdout, process.stderr],
})
},
}) i can use WSL or WSL2 or docker or my macbook, but we need fix the bug, not hide the bug) |
"estrella": "^1.4.0",
This config:
Temporary solution:
The text was updated successfully, but these errors were encountered: