aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAskar Safin <safinaskar@mail.ru>2016-03-10 19:58:23 +0100
committerMichael Kerrisk <mtk.manpages@gmail.com>2016-03-11 00:32:15 +0100
commitcc7b36035b40e4eddb9a1ff1e8122252e19c1bb6 (patch)
treef10789493858bbaf6e061dcf1f875250744d0263
parent69fff5597032464ef0b863f0d4ce7dc532f654bd (diff)
downloadman-pages-cc7b36035b40e4eddb9a1ff1e8122252e19c1bb6.tar.gz
splice.2: Improve description of 0 return value.
See https://bugzilla.kernel.org/show_bug.cgi?id=90911 Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
-rw-r--r--man2/splice.211
1 files changed, 7 insertions, 4 deletions
diff --git a/man2/splice.2 b/man2/splice.2
index 567502715f..3116404570 100644
--- a/man2/splice.2
+++ b/man2/splice.2
@@ -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 ()