Skip to content

fix(child_process): prevent writing to terminating process#85

Merged
AriPerkkio merged 2 commits intotinylibs:mainfrom
AriPerkkio:fix/prevent-write-to-terminating-worker
Apr 13, 2024
Merged

fix(child_process): prevent writing to terminating process#85
AriPerkkio merged 2 commits intotinylibs:mainfrom
AriPerkkio:fix/prevent-write-to-terminating-worker

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:

@AriPerkkio AriPerkkio requested a review from Aslemammad April 12, 2024 03:52
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
@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