Skip to content

eventlog: Fix racy flushing

Ben Gamari requested to merge wip/T18210 into master

Previously no attempt was made to avoid multiple threads writing their capability-local eventlog buffers to the eventlog writer simultaneously. This could result in multiple eventlog streams being interleaved. Fix this by documenting that the EventLogWriter's write() and flush() functions may be called reentrantly and fix the default writer to protect its FILE* by a mutex.

Fixes #18210 (closed).

Merge request reports