From: Tanaka Akira Date: 2013-10-24T10:14:57+09:00 Subject: [ruby-core:58004] Re: [ruby-trunk - Bug #9040] Readline duplicate file descriptors but doesn't close them 2013/10/24 Eric Wong : > 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