mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #5910 from ethereum/rpcsession-close
Shutdown IPC socket gracefully in RPCSession
This commit is contained in:
commit
e83e9a81e5
@ -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; }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user