diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2014-04-09 15:32:37 -0700 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2014-04-09 15:32:37 -0700 |
commit | 420edf23adb3dbd2cfe750c1d7fc231f14e1b39a (patch) | |
tree | 8e2e2bd29a409038863cc01b71769594da641865 /node/UnixEthernetTap.cpp | |
parent | 6c5f6feb5ebd4e92d9b7f49eb50e05b3b7d01441 (diff) | |
download | infinitytier-420edf23adb3dbd2cfe750c1d7fc231f14e1b39a.tar.gz infinitytier-420edf23adb3dbd2cfe750c1d7fc231f14e1b39a.zip |
Was not closing _shutdownSignalPipe in UnixEthernetTap either...
Diffstat (limited to 'node/UnixEthernetTap.cpp')
-rw-r--r-- | node/UnixEthernetTap.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/node/UnixEthernetTap.cpp b/node/UnixEthernetTap.cpp index 240efe41..a91257bb 100644 --- a/node/UnixEthernetTap.cpp +++ b/node/UnixEthernetTap.cpp @@ -439,6 +439,8 @@ UnixEthernetTap::~UnixEthernetTap() ::write(_shutdownSignalPipe[1],"\0",1); // causes thread to exit Thread::join(_thread); ::close(_fd); + ::close(_shutdownSignalPipe[0]); + ::close(_shutdownSignalPipe[1]); #ifdef __APPLE__ EthernetTap_instances_m.lock(); |