note EAGAIN on readpartial document.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@10139 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
9b9de890dc
commit
400fa512cf
2
io.c
2
io.c
@ -1337,7 +1337,7 @@ io_getpartial(int argc, VALUE *argv, VALUE io)
|
|||||||
* r.readpartial(4096) #=> "ghi\n" "" ""
|
* r.readpartial(4096) #=> "ghi\n" "" ""
|
||||||
*
|
*
|
||||||
* Note that readpartial is nonblocking-flag insensitive.
|
* 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.
|
* Also note that readpartial behaves similar to sysread in blocking mode.
|
||||||
* The behavior is identical when the buffer is empty.
|
* The behavior is identical when the buffer is empty.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user