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_process): prevent writing to terminating process #85

Merged

Conversation

AriPerkkio
Copy link
Member

There's a test case that fails without the fix. It's not 100% identical with the original bug cause, but close enough. As the root cause is a race condition, it's really difficult to create 100% reproducible test case.

Test case without the fix with couple of runs:

Copy link
Member

@Aslemammad Aslemammad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@AriPerkkio AriPerkkio merged commit b003003 into tinylibs:main Apr 13, 2024
6 checks passed
@AriPerkkio AriPerkkio deleted the fix/prevent-write-to-terminating-worker branch April 13, 2024 09:02
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.

Error: write EPIPE - trying to write into terminating child_process
2 participants