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>
This commit is contained in:
Askar Safin 2016-03-10 19:58:23 +01:00 committed by Michael Kerrisk
parent 69fff55970
commit cc7b36035b
1 changed files with 7 additions and 4 deletions

View 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 ()