mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-10 16:20:42 +00:00
set closed descriptor to -1 before calling superclass
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36376 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
9662cf9244
commit
0dab3b4ca8
1 changed files with 3 additions and 3 deletions
|
@ -1722,8 +1722,8 @@ setNonBlocking(SOCKET fd)
|
|||
close((intptr_t)_loopID);
|
||||
else
|
||||
shutdown((intptr_t)_loopID, SHUT_RD);
|
||||
[super close];
|
||||
_loopID = (void*)(intptr_t)-1;
|
||||
[super close];
|
||||
#endif
|
||||
_sock = INVALID_SOCKET;
|
||||
}
|
||||
|
@ -2196,8 +2196,8 @@ setNonBlocking(SOCKET fd)
|
|||
close((intptr_t)_loopID);
|
||||
else
|
||||
shutdown((intptr_t)_loopID, SHUT_WR);
|
||||
[super close];
|
||||
_loopID = (void*)(intptr_t)-1;
|
||||
[super close];
|
||||
#endif
|
||||
_sock = INVALID_SOCKET;
|
||||
}
|
||||
|
@ -2500,8 +2500,8 @@ setNonBlocking(SOCKET fd)
|
|||
if (_loopID != (void*)(intptr_t)-1)
|
||||
{
|
||||
close((intptr_t)_loopID);
|
||||
[super close];
|
||||
_loopID = (void*)(intptr_t)-1;
|
||||
[super close];
|
||||
}
|
||||
#endif
|
||||
_sock = INVALID_SOCKET;
|
||||
|
|
Loading…
Reference in a new issue