avoid errno side-effects in kgio_wait_*able
commit6ab4331f8137e949ab57f014f96ff3918a315044
authorEric Wong <normalperson@yhbt.net>
Sun, 26 Dec 2010 02:02:16 +0000 (25 18:02 -0800)
committerEric Wong <normalperson@yhbt.net>
Sun, 26 Dec 2010 02:02:16 +0000 (25 18:02 -0800)
tree356f21e15b75235cb734c56ea592fdd8fc678eb9
parent3a0323b642ee054319a5e64ffe28e089bbd013e4
avoid errno side-effects in kgio_wait_*able

Retrieving the file descriptor may have side-effects on
certain Ruby implementations (e.g. Rubinius), so ensure
our errno is preserved before calling rb_io_wait_*able().
ext/kgio/wait.c