HomeClusterLabs Projects
Diffusion LibQB 49641930d8f5

log: Fix threading races (#396)

Description

log: Fix threading races (#396)

It's possible that cs->filename or cs->format could be read
in the 'fast' path while the 'slow' path is still constructing
the object. So we need to lock arr_next_lock before copying them
out for the caller.

Also wthread_should_exit was unprotected.

Details

Provenance
chrissie-cAuthored on Jun 1 2020, 10:41 AM
GitHub <noreply@github.com>Committed on Jun 1 2020, 10:41 AM
Parents
rQbdc716036ad2: Some bugs spotted by coverity (#399)
Branches
Unknown
Tags
Unknown

Event Timeline