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: use safeWriter to guard writing to output #1140

Merged
merged 3 commits into from
Sep 12, 2024
Merged

fix: use safeWriter to guard writing to output #1140

merged 3 commits into from
Sep 12, 2024

Conversation

aymanbagabas
Copy link
Member

This implements a wrapper around p.output that locks the output on every write. We also need to redefine channelHandlers to be thread-safe since p.Kill() can be called from a different thread while the program is running.

@aymanbagabas aymanbagabas force-pushed the v2-sync branch 2 times, most recently from 31e7e04 to 1e530ba Compare September 12, 2024 16:59
This implements a wrapper around p.output that locks the output on every
write. We also need to redefine `channelHandlers` to be thread-safe
since `p.Kill()` can be called from a different thread while the program
is running.
@aymanbagabas aymanbagabas merged commit 695fbf3 into v2-exp Sep 12, 2024
30 checks passed
@aymanbagabas aymanbagabas deleted the v2-sync branch September 12, 2024 17:22
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.

2 participants