Skip to content

Conversation

radik878
Copy link

The stdout and stderr scanner goroutines were writing to a shared bytes.Buffer concurrently, which is not safe and can cause data races and corrupt output. This change introduces a shared mutex and locks around WriteString calls from both goroutines to serialize writes at line granularity. This ensures deterministic, non-corrupted output accumulation without altering log interleaving semantics.

@radik878 radik878 requested a review from a team as a code owner September 12, 2025 16:44
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