summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-11-07 21:01:40 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-11-07 21:01:40 +0000
commitbd3b3c1b51a7d6ca50d9391d77c5ef618166caa3 (patch)
treef48eae929bf7428f513b9da874e1afe96d61d06e
parentcb230eee021b07fa5bbf413f1ae944bd5e366e94 (diff)
update doc.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33664 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--io.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/io.c b/io.c
index c6357a667d..7996c06382 100644
--- a/io.c
+++ b/io.c
@@ -2357,7 +2357,10 @@ rb_io_write_nonblock(VALUE io, VALUE str)
* }
*
* Note that this method behaves like fread() function in C.
- * If you need the behavior like read(2) system call,
+ * This means it retry to invoke read(2) system call to read data with the specified length (or until EOF).
+ * This behavior is preserved even if <i>ios</i> is non-blocking mode.
+ * (This method is non-blocking flag insensitive as other methods.)
+ * If you need the behavior like single read(2) system call,
* consider readpartial, read_nonblock and sysread.
*/