mirror of https://github.com/mkerrisk/man-pages
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:
parent
69fff55970
commit
cc7b36035b
|
@ -137,10 +137,13 @@ Upon successful completion,
|
||||||
.BR splice ()
|
.BR splice ()
|
||||||
returns the number of bytes
|
returns the number of bytes
|
||||||
spliced to or from the pipe.
|
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
|
A return value of 0 means end of input.
|
||||||
writers connected to the write end of the pipe referred to by
|
If
|
||||||
.IR fd_in .
|
.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,
|
On error,
|
||||||
.BR splice ()
|
.BR splice ()
|
||||||
|
|
Loading…
Reference in New Issue