mirror of
				https://github.com/ethereum/solidity
				synced 2023-10-03 13:03:40 +00:00 
			
		
		
		
	Shutdown IPC socket gracefully in RPCSession
This commit is contained in:
		
							parent
							
								
									ddab3f06a5
								
							
						
					
					
						commit
						b1cb949a4b
					
				| @ -57,7 +57,10 @@ class IPCSocket: public boost::noncopyable | |||||||
| public: | public: | ||||||
| 	explicit IPCSocket(std::string const& _path); | 	explicit IPCSocket(std::string const& _path); | ||||||
| 	std::string sendRequest(std::string const& _req); | 	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; } | 	std::string const& path() const { return m_path; } | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user