loolwsd: log pipe reading errors

Change-Id: I58b78454c74874687fbc216c2dd704b3677ccea1
Reviewed-on: https://gerrit.libreoffice.org/30888
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
This commit is contained in:
Ashod Nakashian 2016-11-15 08:00:07 -05:00 committed by Ashod Nakashian
parent 0f9bd80ca2
commit b47550e566

View file

@ -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))