rtomayko / posix-spawn

Ruby process spawning library
Other
519 stars 52 forks source link

Check if the file descriptor really exists #42

Closed TwP closed 10 years ago

TwP commented 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.

/cc @rtomayko

rtomayko commented 10 years ago

Merged and the 0.3.8 release should be on rubygems.org. Thanks!