From 1be85fdb70bb2c447794224c3035c3c8b4d68e03 Mon Sep 17 00:00:00 2001 From: Thulinma Date: Mon, 1 Sep 2014 16:38:16 +0200 Subject: [PATCH] Fixed socket system call interrupt handling. --- lib/socket.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/socket.cpp b/lib/socket.cpp index b2415bf2..f4a08097 100644 --- a/lib/socket.cpp +++ b/lib/socket.cpp @@ -593,6 +593,9 @@ int Socket::Connection::iread(void * buffer, int len, int flags) { case EWOULDBLOCK: return 0; break; + case EINTR: + return 0; + break; default: if (errno != EPIPE) { Error = true;