avoid initiating syscalls before rb_io_wait_*
commit5123d66fe0b2dad67539a20fe5b91f5b9afd814a
authorEric Wong <e@yhbt.net>
Mon, 27 Sep 2010 16:56:13 +0000 (27 16:56 +0000)
committerEric Wong <e@yhbt.net>
Mon, 27 Sep 2010 18:26:56 +0000 (27 18:26 +0000)
treecbf1daefece3786fa6c89b104392c90b34a1ba05
parent6c818b0b6f76ef733679bcea1024142b4ef3ce00
avoid initiating syscalls before rb_io_wait_*

Some Ruby implementations (Rubinius) may call lseek
and clobber the intended errno when looking up the
open file, causing rb_io_wait_* functions to fail.
ext/kgio/kgio_ext.c