2013/10/24 Eric Wong <normalperson / yhbt.net>:

> On a related note: should rb_fd_set/rb_fd_resize call rb_bug on
> negative FD?  Otherwise it could OOM/SEGV, I think

It's possible to fail fast.

I'm not sure wihch is suitable between rb_bug and rb_raise, though.
Negative FD can be determined safely.
-- 
Tanaka Akira