mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-16 08:04:20 +00:00
OSX: make tioslectors test green
This commit is contained in:
@@ -567,8 +567,11 @@ proc selectInto*[T](s: Selector[T], timeout: int,
|
||||
doAssert(true, "Unsupported kqueue filter in the queue!")
|
||||
|
||||
if (kevent.flags and EV_EOF) != 0:
|
||||
# TODO this error handling needs to be rethought.
|
||||
# `fflags` can sometimes be `0x80000000` and thus we use 'cast'
|
||||
# here:
|
||||
if kevent.fflags != 0:
|
||||
rkey.errorCode = kevent.fflags.OSErrorCode
|
||||
rkey.errorCode = cast[OSErrorCode](kevent.fflags)
|
||||
else:
|
||||
# This assumes we are dealing with sockets.
|
||||
# TODO: For future-proofing it might be a good idea to give the
|
||||
|
||||
Reference in New Issue
Block a user