]> git.saurik.com Git - wxWidgets.git/commitdiff
reset fd after closing it
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 17 May 2006 09:13:10 +0000 (09:13 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 17 May 2006 09:13:10 +0000 (09:13 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39186 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/unix/pipe.h

index 356ee9d394e55a45d14fb537998fa4a2939d871e..b1270b070a0175d87f822645d7e7f31ef2eebf73 100644 (file)
@@ -74,7 +74,10 @@ public:
         for ( size_t n = 0; n < WXSIZEOF(m_fds); n++ )
         {
             if ( m_fds[n] != INVALID_FD )
+            {
                 close(m_fds[n]);
+                m_fds[n] = INVALID_FD;
+            }
         }
     }