From: Vadim Zeitlin Date: Wed, 17 May 2006 09:13:10 +0000 (+0000) Subject: reset fd after closing it X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/ca7aeeb7d23e619b1d769b2130c6216dcaeeea6c reset fd after closing it git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39186 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/unix/pipe.h b/include/wx/unix/pipe.h index 356ee9d394..b1270b070a 100644 --- a/include/wx/unix/pipe.h +++ b/include/wx/unix/pipe.h @@ -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; + } } }