add IO.trytee interface
commit813c5300294046f9ae0f4bac8449a4734ddd7fd9
authorEric Wong <normalperson@yhbt.net>
Sun, 27 Feb 2011 23:40:44 +0000 (27 23:40 +0000)
committerEric Wong <normalperson@yhbt.net>
Mon, 28 Feb 2011 00:15:00 +0000 (28 00:15 +0000)
tree74184d5ad46051031ff8013f276bd96019e76fba
parentc32ddca888259c391e126154ff62fdcdb2e3759c
add IO.trytee interface

This allows more-efficient use of non-blocking I/O with
tee(2) and will return :EAGAIN instead of generating an
expensive Errno::EAGAIN exception.
ext/io_splice/io_splice_ext.c
test/test_io_splice.rb