introduce kgio_try* methods
commitfdfecc6d815bab8dfc1d8ad6758a66d44ab51e31
authorEric Wong <e@yhbt.net>
Sun, 26 Sep 2010 07:51:12 +0000 (26 07:51 +0000)
committerEric Wong <e@yhbt.net>
Sun, 26 Sep 2010 08:00:09 +0000 (26 08:00 +0000)
tree7874f5c8a7698d69edbbd8e91bacaedc0ad625cb
parentd8ee79e1e5c6e6908009213324db25cf41c583ce
introduce kgio_try* methods

Avoid altering behavior based on globals that
Kgio.wait_{read,writ}able stored in, since that's too confusing.
The non-try variants are closer to the normal IO read/write
methods, except they can be more easily plugged into alternate
reactors and event frameworks.
ext/kgio/kgio_ext.c
test/lib_read_write.rb
test/test_pipe_popen.rb