Skip to content

dune_trace: ignore writes after close#14783

Open
rgrinberg wants to merge 1 commit into
ocaml:mainfrom
rgrinberg:push-qqnmzyrustzu
Open

dune_trace: ignore writes after close#14783
rgrinberg wants to merge 1 commit into
ocaml:mainfrom
rgrinberg:push-qqnmzyrustzu

Conversation

@rgrinberg
Copy link
Copy Markdown
Member

Track whether the trace output has been closed and make emit and flush no-ops after close. This makes close idempotent and avoids writing to a closed trace fd from late worker threads.

Track whether the trace output has been closed and make emit and flush no-ops
after close. This makes close idempotent and avoids writing to a closed trace fd
from late worker threads.

Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
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