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

feat: use spawn instead of fork #638

Merged
merged 1 commit into from
Aug 7, 2023
Merged

feat: use spawn instead of fork #638

merged 1 commit into from
Aug 7, 2023

Conversation

mdonnalley
Copy link
Contributor

child_process.fork creates a copy of the running process, which is proving to be problematic when running node with --loader ts-node/esm. Switching to spawn resolves the issue since it will create an entirely new process for the command to run

For the time being I'm putting this behind a scoped env var, PLUGINS_INSTALL_USE_SPAWN. So the default behavior will remain the same. We'll switch the default to spawn once it has been fully tested

@mdonnalley mdonnalley merged commit e3e745b into main Aug 7, 2023
7 checks passed
@mdonnalley mdonnalley deleted the mdonnalley/use-spawn branch August 7, 2023 20:00
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.

1 participant