6 May
2011
6 May
'11
3:15 a.m.
Branch: refs/heads/master Home: https://github.com/MacRuby/MacRuby Commit: a65199394eea7ca0db48db080d393b4b40746d36 https://github.com/MacRuby/MacRuby/commit/a65199394eea7ca0db48db080d393b4b40... Author: Watson <watson1978@gmail.com> Date: 2011-05-05 (Thu, 05 May 2011) Changed paths: M io.c Log Message: ----------- IO.copy_stream will use copyfile() even when given descriptors. fix a #363. Test Script: {{{ File.open("/tmp/a", "w") { |f| f.write "x" * 10240 } p IO.copy_stream("/tmp/a", "/tmp/b") src = open("/tmp/a") p IO.copy_stream(src, "/tmp/b") src.close src = open("/tmp/a") dst = open("/tmp/c", "w") p IO.copy_stream(src, dst) src.close dst.close }}}