Skip to content
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

fix child processes becoming zombies in dev #390

Merged
merged 1 commit into from May 14, 2024

Conversation

qw-in
Copy link
Contributor

@qw-in qw-in commented May 8, 2024

fixes #317

TL;DR I was using volta, which spawns node in a child process & it wasn't getting cleaned up.

This pr attempts to address that by always cleaning up the process & all sub-processes. To do so I lifted some code from go-cmd.

I didn't try very hard on the naming/factoring - happy to change it to whatever y'all prefer

Not sure if it could be used in more places too - noticed something similar in client already:

cmd.SysProcAttr = &syscall.SysProcAttr{Setpgid: true}

qw-in added a commit to qw-in/ion that referenced this pull request May 8, 2024
qw-in added a commit to qw-in/ion that referenced this pull request May 9, 2024
@thdxr thdxr merged commit f9fef1b into sst:dev May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

sst dev - zombie node processes
2 participants