Closed rawrafox closed 2 years ago
Thanks for this detailed report and spending time investigating the implementation. I'll take a look and hope to fix this tonight. I also think it's funny I used the one file /dev/zero
that has different semantics from every other file. Haha.
Yeah, that and /dev/null were the only reasonable ones I tried that it failed on. TTYs and other actually useful devices work fine.
This crashes with
no implicit conversion from nil to integer (TypeError)
, and while you can just workaround it with aif (NIL_P(result)) …
at https://github.com/socketry/io-event/blob/main/ext/io/event/selector/kqueue.c#L351 I am not sure if that is the best solution?