]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
splice.2: Improve description of 0 return value.
authorAskar Safin <safinaskar@mail.ru>
Thu, 10 Mar 2016 18:58:23 +0000 (19:58 +0100)
committerMichael Kerrisk <mtk.manpages@gmail.com>
Thu, 10 Mar 2016 23:32:15 +0000 (00:32 +0100)
See https://bugzilla.kernel.org/show_bug.cgi?id=90911

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
man2/splice.2

index 567502715fd140c2b329cceaa562a0c07db6e353..311640457079af3a2925392ae607e55abe8da4a2 100644 (file)
@@ -137,10 +137,13 @@ Upon successful completion,
 .BR splice ()
 returns the number of bytes
 spliced to or from the pipe.
-A return value of 0 means that there was no data to transfer,
-and it would not make sense to block, because there are no
-writers connected to the write end of the pipe referred to by
-.IR fd_in .
+
+A return value of 0 means end of input.
+If
+.I fd_in
+refers to a pipe, then this means that there was no data to transfer,
+and it would not make sense to block because there are no writers
+connected to the write end of the pipe.
 
 On error,
 .BR splice ()