From 4e1188b08a7f81fcca15943090f31d9416c7442a Mon Sep 17 00:00:00 2001 From: Wenzel Jakob Date: Wed, 4 Dec 2013 16:57:55 +0100 Subject: [PATCH] port of the previous change to Linux/OSX --- src/libcore/sstream.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/libcore/sstream.cpp b/src/libcore/sstream.cpp index 676c0640..57c7da09 100644 --- a/src/libcore/sstream.cpp +++ b/src/libcore/sstream.cpp @@ -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