Skip to content

fix(output): synchronize the prefixed writer buffer - #3092

Open
bilal-younus wants to merge 1 commit into
go-task:mainfrom
bilal-younus:codex/fix-prefixed-output-race
Open

bilal-younus wants to merge 1 commit into
go-task:mainfrom
bilal-younus:codex/fix-prefixed-output-race

Conversation

@bilal-younus

Copy link
Copy Markdown

Description

Concurrent stdout/stderr writes share an unprotected buffer and can crash.
Added a mutex around Write and close.
Reference: Fixes #2945.

This branch has not been deployed

No deployments
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.

panic in prefixed output when stdout and stderr are written concurrently

1 participant