Merge pull request #5910 from ethereum/rpcsession-close

Shutdown IPC socket gracefully in RPCSession
This commit is contained in:
Alex Beregszaszi
2019-01-31 13:55:55 +00:00
committed by GitHub
+4 -1
View File
@@ -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; }