summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-05-09 02:12:11 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-05-09 02:12:11 +0000
commit1579af19a5891c82a4c747120fdcbaf8d6723f4b (patch)
treebee25610c79e5f98d5e8194efdb132b23ca6fb59
parentdf2bb48cc6f863096367a3a8c0e225c6b2895945 (diff)
downloadruby-1579af19a5891c82a4c747120fdcbaf8d6723f4b.tar.gz
ruby-1579af19a5891c82a4c747120fdcbaf8d6723f4b.tar.xz
ruby-1579af19a5891c82a4c747120fdcbaf8d6723f4b.zip
note EAGAIN on readpartial document.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@10139 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io.c b/io.c
index c0bc351a0..0900392fd 100644
--- a/io.c
+++ b/io.c
@@ -1337,7 +1337,7 @@ io_getpartial(int argc, VALUE *argv, VALUE io)
* r.readpartial(4096) #=> "ghi\n" "" ""
*
* Note that readpartial is nonblocking-flag insensitive.
- * It blocks even if the nonblocking-flag is set.
+ * It blocks on the situation IO#sysread causes Errno::EAGAIN.
*
* Also note that readpartial behaves similar to sysread in blocking mode.
* The behavior is identical when the buffer is empty.