diff options
-rw-r--r-- | test/RPCSession.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/RPCSession.cpp b/test/RPCSession.cpp index 8d18d118..9d046c4f 100644 --- a/test/RPCSession.cpp +++ b/test/RPCSession.cpp @@ -114,7 +114,8 @@ string IPCSocket::sendRequest(string const& _req) ssize_t ret = recv(m_socket, m_readBuf, sizeof(m_readBuf), 0); - if (ret < 0) + // Also consider closed socket an error. + if (ret <= 0) BOOST_FAIL("Reading on IPC failed"); return string(m_readBuf, m_readBuf + ret); |