loolwsd/IoUtil.cpp | 5 +++++
1 file changed, 5 insertions(+)
New commits:
commit b47550e5669180323b35586a767bd8fb2260462c
Author: Ashod Nakashian <[email protected]>
Date: Tue Nov 15 08:00:07 2016 -0500
loolwsd: log pipe reading errors
Change-Id: I58b78454c74874687fbc216c2dd704b3677ccea1
Reviewed-on: https://gerrit.libreoffice.org/30888
Reviewed-by: Ashod Nakashian <[email protected]>
Tested-by: Ashod Nakashian <[email protected]>
diff --git a/loolwsd/IoUtil.cpp b/loolwsd/IoUtil.cpp
index 4368af1..035dcf8 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))
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits