From 0d8102a2864bb20b23cd48ca5ee2fbfd8ede868b Mon Sep 17 00:00:00 2001 From: David Herrmann Date: Sat, 1 Dec 2012 13:15:01 +0100 Subject: [PATCH] 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 --- src/pty.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pty.c b/src/pty.c index 27989ff..5f75dc6 100644 --- a/src/pty.c +++ b/src/pty.c @@ -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); -- 2.7.4