]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
close file descriptors again
authorandreaskoepke <andreaskoepke>
Fri, 21 Sep 2007 15:43:22 +0000 (15:43 +0000)
committerandreaskoepke <andreaskoepke>
Fri, 21 Sep 2007 15:43:22 +0000 (15:43 +0000)
support/sdk/cpp/sf/tcpcomm.cpp

index 762487f6a25b2c9ea916c547af9ef90b79d0267a..85b221a9db6ac7c5c66cbb55eaca81a5ae140fdb 100644 (file)
@@ -144,6 +144,8 @@ TCPComm::~TCPComm()
     {
         close(*it);
     }
+    close(pipeWriteFD);
+    close(pipeReadFD);
     pthread_mutex_destroy(&clientInfo.sleeplock);
     pthread_mutex_destroy(&clientInfo.countlock);
     pthread_cond_destroy(&clientInfo.wakeup);