From ca7aeeb7d23e619b1d769b2130c6216dcaeeea6c Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Wed, 17 May 2006 09:13:10 +0000 Subject: [PATCH] reset fd after closing it git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39186 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/unix/pipe.h | 3 +++ 1 file changed, 3 insertions(+) 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; + } } } -- 2.47.2