Corrected prunesocketset and pruneprocessset

fd sets passed to select() were pruning ready FDs rather than pruning
UN-ready FDs.
This commit is contained in:
Erik O'Leary 2014-01-19 10:51:21 -06:00
commit 5d8d1ed8bc
5 changed files with 6 additions and 6 deletions

View file

@ -800,7 +800,7 @@ elif not defined(useNimRtl):
var i = 0
var L = s.len
while i < L:
if FD_ISSET(cint(s[i].outHandle), fd) != 0'i32:
if FD_ISSET(cint(s[i].outHandle), fd) == 0'i32:
s[i] = s[L-1]
dec(L)
else: