From b1cb949a4b2c50da233eedd21bfb72df2aafecca Mon Sep 17 00:00:00 2001 From: Alex Beregszaszi Date: Wed, 30 Jan 2019 13:57:19 +0000 Subject: [PATCH] Shutdown IPC socket gracefully in RPCSession --- test/RPCSession.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/RPCSession.h b/test/RPCSession.h index 92f9da4a5..7529f23c3 100644 --- a/test/RPCSession.h +++ b/test/RPCSession.h @@ -57,7 +57,10 @@ class IPCSocket: public boost::noncopyable public: explicit IPCSocket(std::string const& _path); std::string sendRequest(std::string const& _req); - ~IPCSocket() { close(m_socket); } + ~IPCSocket() { + shutdown(m_socket, SHUT_RDWR); + close(m_socket); + } std::string const& path() const { return m_path; }