pty: downgrade error to debug message on I/O errors

I/O errors aren't fatal or important on PTYs so ignore them and mark it as
debug message.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
This commit is contained in:
David Herrmann 2012-12-01 13:15:01 +01:00
parent 2f546b7f19
commit 0d8102a286

View File

@ -407,8 +407,8 @@ static int read_buf(struct kmscon_pty *pty)
pty->child);
break;
} else if (errno != EWOULDBLOCK) {
log_err("cannot read from pty of child %d (%d): %m",
pty->child, errno);
log_debug("cannot read from pty of child %d (%d): %m",
pty->child, errno);
break;
}
} while (len > 0 && --num);