fix(cli.rs): terminate the beforeDevCommand, closes #2794#2883
fix(cli.rs): terminate the beforeDevCommand, closes #2794#2883lucasfernog merged 5 commits intodevfrom
Conversation
|
steps I took to produce the issue or at least one of them:
results:
|
|
@amrbashir Could be this: |
|
yeah I think it is related, I talked about it in discord before. |
|
This issue is driving me crazy, I managed to reproduce it with |
|
A bit of an update, in svelte official template, I found out that they are using Switching it to |
|
@probablykasper can you still reproduce this issue? I couldn't after a lot of attempts. |
FabianLars
left a comment
There was a problem hiding this comment.
Seems to work wonderfully on windows 🥳
|
@lucasfernog Yes. Tried running |
|
I tried the same steps but I couldn't reproduce it. |
|
Unable to reproduce it both with this PR and without? |
|
Looks like we need a better script to kill child processes on Unix (currently |
|
I don't think there's a better way to do it than that. As long as Best bet might be to instead use a different Svelte template in |
|
Yeah but I think we can fix this on our end, I'm testing atm. |
|
@probablykasper try again, it works now! |
tooling/cli/scripts/kill-children.sh
Outdated
| done | ||
| } | ||
|
|
||
| kill -9 $(getcpid $1) |
There was a problem hiding this comment.
The change is you're calling 9 (SIGKILL) instead of SIGTERM, right? I'm not sure that's a great idea :/
There was a problem hiding this comment.
Let me try with SIGTERM again
There was a problem hiding this comment.
hmm I think there's no other way, either we leave Svelte users with this super annoying bug or we use SIGKILL
There was a problem hiding this comment.
I wouldn't want to risk using SIGKILL, could have some rough consequences since it takes away processes' ability to shut down properly :/
As Amr pointed out, the Svelte template might just be spawning it's child process incorrectly
There was a problem hiding this comment.
i'll just revert it, maybe there's a place for us to document it
This reverts commit b689271.
What kind of change does this PR introduce? (check at least one)
Does this PR introduce a breaking change? (check one)
The PR fulfills these requirements:
fix: #xxx[,#xxx], where "xxx" is the issue number)If adding a new feature, the PR's description includes:
Other information: