This is mostly a problem within avocado as serial generally isn't busy
enough to overfill pipes. However the consequences of recording a
failed write will haunt us on replay when the log will be out of sync
to the playback.
Fixes:https://gitlab.com/qemu-project/qemu/-/issues/2010
Message-Id:<20231205204106.95531-11-alex.bennee@linaro.org>
Acked-by: Pavel Dovgalyuk<Pavel.Dovgalyuk@ispras.ru>
Reviewed-by: Philippe Mathieu-Daudé<philmd@linaro.org>
Signed-off-by: Alex Bennée<alex.bennee@linaro.org>
---
v2
- add explicit if REPLAY_MODE_RECORD leg with comment.
---
chardev/char.c | 12 ++++++++++++
1 file changed, 12 insertions(+)