diff options
Diffstat (limited to 'src/SocketCore.cc')
| -rw-r--r-- | src/SocketCore.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/SocketCore.cc b/src/SocketCore.cc index 160164f9..f557ff94 100644 --- a/src/SocketCore.cc +++ b/src/SocketCore.cc @@ -225,7 +225,7 @@ bool SocketCore::isWritable(int timeout) const { // time out return false; } else { - if(errno == EINPROGRESS) { + if(errno == EINPROGRESS || errno == EINTR) { return false; } else { throw new DlRetryEx(EX_SOCKET_CHECK_WRITABLE, strerror(errno)); @@ -254,7 +254,7 @@ bool SocketCore::isReadable(int timeout) const { // time out return false; } else { - if(errno == EINPROGRESS) { + if(errno == EINPROGRESS || errno == EINTR) { return false; } else { throw new DlRetryEx(EX_SOCKET_CHECK_READABLE, strerror(errno)); |
