port of the previous change to Linux/OSX

metadata
Wenzel Jakob 2013-12-04 16:57:55 +01:00
parent 4f61786b71
commit 4e1188b08a
1 changed files with 4 additions and 1 deletions

View File

@ -247,7 +247,10 @@ void SocketStream::flush() {
}
bool SocketStream::handleError(const std::string &cmd, ELogLevel level) {
#ifndef WIN32
#if !defined(__WINDOWS__)
if (level == EWarn && errno == EINTR) /* This is not really a warning -- just retry the operation. */
return false;
if (cmd.find("(") == std::string::npos)
Log(level, "Error in %s(): %s!", cmd.c_str(), strerror(errno));
else