diff --git a/chardev/char-pty.c b/chardev/char-pty.c index cc2f7617fe7f966b3e852a0d39fb8c8c7223ec5e..d9bc0aac195046c6c490df7447a3abb65057eeaf 100644 --- a/chardev/char-pty.c +++ b/chardev/char-pty.c @@ -123,7 +123,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;