Browse Source

Was not closing _shutdownSignalPipe in UnixEthernetTap either...

Adam Ierymenko 11 years ago
parent
commit
420edf23ad
1 changed files with 2 additions and 0 deletions
  1. 2 0
      node/UnixEthernetTap.cpp

+ 2 - 0
node/UnixEthernetTap.cpp

@@ -439,6 +439,8 @@ UnixEthernetTap::~UnixEthernetTap()
 	::write(_shutdownSignalPipe[1],"\0",1); // causes thread to exit
 	::write(_shutdownSignalPipe[1],"\0",1); // causes thread to exit
 	Thread::join(_thread);
 	Thread::join(_thread);
 	::close(_fd);
 	::close(_fd);
+	::close(_shutdownSignalPipe[0]);
+	::close(_shutdownSignalPipe[1]);
 
 
 #ifdef __APPLE__
 #ifdef __APPLE__
 	EthernetTap_instances_m.lock();
 	EthernetTap_instances_m.lock();