From b47550e5669180323b35586a767bd8fb2260462c Mon Sep 17 00:00:00 2001 From: Ashod Nakashian Date: Tue, 15 Nov 2016 08:00:07 -0500 Subject: [PATCH] loolwsd: log pipe reading errors Change-Id: I58b78454c74874687fbc216c2dd704b3677ccea1 Reviewed-on: https://gerrit.libreoffice.org/30888 Reviewed-by: Ashod Nakashian Tested-by: Ashod Nakashian --- loolwsd/IoUtil.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/loolwsd/IoUtil.cpp b/loolwsd/IoUtil.cpp index 4368af18d..035dcf884 100644 --- a/loolwsd/IoUtil.cpp +++ b/loolwsd/IoUtil.cpp @@ -284,6 +284,11 @@ int PipeReader::readLine(std::string& line, else if (ready < 0) { // error. + if (errno != EINTR) + { + LOG_SYS("Pipe polling failed."); + } + return ready; } else if (pipe.revents & (POLLIN | POLLPRI))