reset fd after closing it
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@39186 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
f1e0171631
commit
ca7aeeb7d2
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user