mirror of
https://github.com/qemu/qemu.git
synced 2026-02-04 05:35:39 +00:00
chardev/char-pty: Do not ignore chr_write() failures
Cc: qemu-stable@nongnu.org Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-ID: <20251022150743.78183-6-philmd@linaro.org>
This commit is contained in:
committed by
Marc-André Lureau
parent
313f6884c8
commit
303f604935
@@ -125,7 +125,7 @@ static int char_pty_chr_write(Chardev *chr, const uint8_t *buf, int len)
|
||||
rc = RETRY_ON_EINTR(g_poll(&pfd, 1, 0));
|
||||
g_assert(rc >= 0);
|
||||
if (!(pfd.revents & G_IO_HUP) && (pfd.revents & G_IO_OUT)) {
|
||||
io_channel_send(s->ioc, buf, len);
|
||||
return io_channel_send(s->ioc, buf, len);
|
||||
}
|
||||
|
||||
return len;
|
||||
|
||||
Reference in New Issue
Block a user