This allows callers to identify this potentially unrecoverable error. --- chardev/char-io.c | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/chardev/char-io.c b/chardev/char-io.c
index f810524..f934eb9 100644
--- a/chardev/char-io.c
+++ b/chardev/char-io.c
@@ -168,6 +168,9 @@ int io_channel_send_full(QIOChannel *ioc,
errno = EAGAIN;
return -1;
+ } else if (ret == QIO_CHANNEL_ERR_BROKEN) {
+ errno = EPIPE;
+ return -1;
} else if (ret < 0) {
errno = EINVAL;
return -1;
--
1.8.3.1
