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

Pass in options for wc child process #1000

Merged
merged 6 commits into from
Feb 15, 2022
Merged

Pass in options for wc child process #1000

merged 6 commits into from
Feb 15, 2022

Conversation

jackofdiamond5
Copy link
Member

Closes #972

Additional information related to this pull request: For execSync we need to provide options which specify stdio and killSignal. Currently we make the child process inherit the stdio of its parent so that it can print messages to its stdout and we set the killSignal to be SIGINT allowing it to handle its termination gracefully. Because we also inherit the stdin this may cause trouble if the child process throws during interruption and there will be no real way for us to handle it. A future improvement may be to consider piping the child process' stdin in order to keep the control with us. However, we will have to support any inputs required for every child process that we spawn.

@coveralls
Copy link

coveralls commented Feb 11, 2022

Coverage Status

Coverage increased (+0.07%) to 72.585% when pulling 14c431b on bpenkov/wc-proj-opt into 84ca125 on master.

@Lipata Lipata merged commit 8434b58 into master Feb 15, 2022
@Lipata Lipata deleted the bpenkov/wc-proj-opt branch February 15, 2022 09:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Interrupting a started project by the step-by-step flow throws an error
4 participants