Re: [PATCH v5 18/24] util: fix interleaving of error prefixes
Markus Armbruster <[email protected]> Wed, 14 Jan 2026 15:00:34 +0100
| Newsgroups | org.nongnu.qemu-rust,org.nongnu.qemu-devel |
|---|---|
| Message-ID | <[email protected]> |
Daniel P. Berrangé <[email protected]> writes: > The vreport() function will optionally emit an prefix for error > messages which is output to stderr incrementally. In the event > that two vreport() calls execute concurrently, there is a risk > that the prefix output will interleave. To address this it is > required to take a lock on 'stderr' when outputting errors. > > Reviewed-by: Philippe Mathieu-Daudé <[email protected]> > Reviewed-by: Richard Henderson <[email protected]> > Signed-off-by: Daniel P. Berrangé <[email protected]> Reported-by: Markus Armbruster <[email protected]> Reviewed-by: Markus Armbruster <[email protected]>