Closed TwP closed 10 years ago
If one of the IO.pipe calls fail, then the subsequent file descriptors will not be allocated. We need to account for this failure mode in the ensure block; otherwise the real error will be masked by an "undefined method on Nil" exception.
IO.pipe
ensure
/cc @rtomayko
Merged and the 0.3.8 release should be on rubygems.org. Thanks!
If one of the
IO.pipe
calls fail, then the subsequent file descriptors will not be allocated. We need to account for this failure mode in theensure
block; otherwise the real error will be masked by an "undefined method on Nil" exception./cc @rtomayko