diff options
author | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-05-29 22:48:53 +0000 |
---|---|---|
committer | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-05-29 22:48:53 +0000 |
commit | e95144436f8dccb3a30b5a1d59f8df8e52afb994 (patch) | |
tree | aef524394d97e12470b5faf288abcb337d98d75d | |
parent | 5b66b692dde7cf64e06216aefdb76748d5f33377 (diff) |
merges r31237 from trunk into ruby_1_9_2.
--
* io.c (rb_io_syswrite): While local FS writes are usually
buffered, the buffers can be full or the file opened with
O_SYNC. IO#syswrite can also be used on blocking IOs
(pipe/socket) just like IO#write.
The patch is written by Eric Wong. [ruby-core:35554]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_2@31794 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | io.c | 2 | ||||
-rw-r--r-- | version.h | 2 |
3 files changed, 10 insertions, 2 deletions
@@ -1,3 +1,11 @@ +Mon Apr 4 21:41:26 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com> + + * io.c (rb_io_syswrite): While local FS writes are usually + buffered, the buffers can be full or the file opened with + O_SYNC. IO#syswrite can also be used on blocking IOs + (pipe/socket) just like IO#write. + The patch is written by Eric Wong. [ruby-core:35554] + Fri Mar 25 19:39:40 2011 Ben Walton <bwalton@artsci.utoronto.ca> * test/test_syslog.rb: @@ -3854,7 +3854,7 @@ rb_io_syswrite(VALUE io, VALUE str) rb_io_check_closed(fptr); } - n = write(fptr->fd, RSTRING_PTR(str), RSTRING_LEN(str)); + n = rb_write_internal(fptr->fd, RSTRING_PTR(str), RSTRING_LEN(str)); if (n == -1) rb_sys_fail_path(fptr->pathv); @@ -1,5 +1,5 @@ #define RUBY_VERSION "1.9.2" -#define RUBY_PATCHLEVEL 221 +#define RUBY_PATCHLEVEL 222 #define RUBY_VERSION_MAJOR 1 #define RUBY_VERSION_MINOR 9 #define RUBY_VERSION_TEENY 1 |