avoid reading errno repeatedly
commit33a2540fb12cec9052f9b92810f2a9aa5b395911
authorEric Wong <e@80x24.org>
Fri, 17 Mar 2017 01:57:34 +0000 (17 01:57 +0000)
committerEric Wong <e@80x24.org>
Sat, 18 Mar 2017 01:13:59 +0000 (18 01:13 +0000)
treefbac9c92882d164b9bcb30e01b198b39ca2d9c75
parentedb5542d0d5911d2712321db469c6bddf07e2d21
avoid reading errno repeatedly

errno is in the thread-specific section and it is slightly
cheaper to read it once rather than twice.  Recent versions
of mainline Ruby itself follows the same pattern.
ext/raindrops/raindrops.c