about summary refs log tree commit homepage
path: root/ext/io_splice
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-05-27 09:04:27 +0000
committerEric Wong <normalperson@yhbt.net>2010-05-27 09:04:27 +0000
commit88671379426904ac0caa9645cb3cca7fd1d1a2fa (patch)
tree53dcac6ef0b0cdc435334529ac38a28137a65d1e /ext/io_splice
parentc9b42fb857f77109d215a0418fd3171f0f5d5b18 (diff)
downloadruby_io_splice-88671379426904ac0caa9645cb3cca7fd1d1a2fa.tar.gz
Diffstat (limited to 'ext/io_splice')
-rw-r--r--ext/io_splice/io_splice_ext.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/ext/io_splice/io_splice_ext.c b/ext/io_splice/io_splice_ext.c
index 9531633..fdb3397 100644
--- a/ext/io_splice/io_splice_ext.c
+++ b/ext/io_splice/io_splice_ext.c
@@ -345,9 +345,15 @@ void Init_io_splice_ext(void)
         rb_define_const(mSplice, "F_MOVE", UINT2NUM(SPLICE_F_MOVE));
 
         /*
-         * Do not block on I/O.  This flag only affects the pipe(s) being
-         * spliced from/to and has no effect on the non-pipe descriptor
-         * (which requires non-blocking operation to be set explicitly).
+         * Do not block on pipe I/O.  This flag only affects the pipe(s)
+         * being spliced from/to and has no effect on the non-pipe
+         * descriptor (which requires non-blocking operation to be set
+         * explicitly).
+         *
+         * The non-blocking flag (O_NONBLOCK) on the pipe descriptors
+         * themselves are ignored by this family of functions, and
+         * using this flag is the only way to get non-blocking operation
+         * out of them.
          */
         rb_define_const(mSplice, "F_NONBLOCK", UINT2NUM(SPLICE_F_NONBLOCK));