Linux-man Archive on lore.kernel.org
 help / color / Atom feed
* [PATCH 0/2] Add note on splice/tee EAGAIN error when called with nonblocking descriptors
@ 2019-04-12 14:02 Slavomir Kaslev
  2019-04-12 14:02 ` [PATCH 1/2] splice.2: Note EAGAIN can occur when called on nonblocking file descriptors Slavomir Kaslev
  2019-04-12 14:02 ` [PATCH 2/2] tee.2: " Slavomir Kaslev
  0 siblings, 2 replies; 5+ messages in thread
From: Slavomir Kaslev @ 2019-04-12 14:02 UTC (permalink / raw)
  To: mtk.manpages; +Cc: linux-man, linux-kernel, slavomir.kaslev

Document that splice(2)/tee(2) can fail with EAGAIN when called with nonblocking
file descriptors and the operation would block.

Slavomir Kaslev (2):
  splice.2: Note EAGAIN can occur when called on nonblocking file
    descriptors
  tee.2: Note EAGAIN can occur when called on nonblocking file
    descriptors

 man2/splice.2 | 4 +++-
 man2/tee.2    | 4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)

-- 
2.19.1

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 1/2] splice.2: Note EAGAIN can occur when called on nonblocking file descriptors
  2019-04-12 14:02 [PATCH 0/2] Add note on splice/tee EAGAIN error when called with nonblocking descriptors Slavomir Kaslev
@ 2019-04-12 14:02 ` Slavomir Kaslev
  2019-05-05 10:29   ` Michael Kerrisk (man-pages)
  2019-04-12 14:02 ` [PATCH 2/2] tee.2: " Slavomir Kaslev
  1 sibling, 1 reply; 5+ messages in thread
From: Slavomir Kaslev @ 2019-04-12 14:02 UTC (permalink / raw)
  To: mtk.manpages; +Cc: linux-man, linux-kernel, slavomir.kaslev

Signed-off-by: Slavomir Kaslev <kaslevs@vmware.com>
---
 man2/splice.2 | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/man2/splice.2 b/man2/splice.2
index 57988d9d6..af3fa4e74 100644
--- a/man2/splice.2
+++ b/man2/splice.2
@@ -155,7 +155,9 @@ is set to indicate the error.
 .B EAGAIN
 .B SPLICE_F_NONBLOCK
 was specified in
-.IR flags ,
+.IR flags
+or one of the file descriptors had been marked as nonblocking
+.RB ( O_NONBLOCK ) ,
 and the operation would block.
 .TP
 .B EBADF
-- 
2.19.1

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 2/2] tee.2: Note EAGAIN can occur when called on nonblocking file descriptors
  2019-04-12 14:02 [PATCH 0/2] Add note on splice/tee EAGAIN error when called with nonblocking descriptors Slavomir Kaslev
  2019-04-12 14:02 ` [PATCH 1/2] splice.2: Note EAGAIN can occur when called on nonblocking file descriptors Slavomir Kaslev
@ 2019-04-12 14:02 ` " Slavomir Kaslev
  2019-05-05 10:29   ` Michael Kerrisk (man-pages)
  1 sibling, 1 reply; 5+ messages in thread
From: Slavomir Kaslev @ 2019-04-12 14:02 UTC (permalink / raw)
  To: mtk.manpages; +Cc: linux-man, linux-kernel, slavomir.kaslev

Signed-off-by: Slavomir Kaslev <kaslevs@vmware.com>
---
 man2/tee.2 | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/man2/tee.2 b/man2/tee.2
index 7bb0d3a31..03d043b46 100644
--- a/man2/tee.2
+++ b/man2/tee.2
@@ -100,7 +100,9 @@ is set to indicate the error.
 .B EAGAIN
 .B SPLICE_F_NONBLOCK
 was specified in
-.IR flags ,
+.IR flags
+or one of the file descriptors had been marked as nonblocking
+.RB ( O_NONBLOCK ) ,
 and the operation would block.
 .TP
 .B EINVAL
-- 
2.19.1

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 1/2] splice.2: Note EAGAIN can occur when called on nonblocking file descriptors
  2019-04-12 14:02 ` [PATCH 1/2] splice.2: Note EAGAIN can occur when called on nonblocking file descriptors Slavomir Kaslev
@ 2019-05-05 10:29   ` Michael Kerrisk (man-pages)
  0 siblings, 0 replies; 5+ messages in thread
From: Michael Kerrisk (man-pages) @ 2019-05-05 10:29 UTC (permalink / raw)
  To: Slavomir Kaslev; +Cc: mtk.manpages, linux-man, linux-kernel, slavomir.kaslev

Hello Slavomir,

On 4/12/19 9:02 AM, Slavomir Kaslev wrote:
> Signed-off-by: Slavomir Kaslev <kaslevs@vmware.com>

Thanks! Applied.

Cheers,

Michael


> ---
>   man2/splice.2 | 4 +++-
>   1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/man2/splice.2 b/man2/splice.2
> index 57988d9d6..af3fa4e74 100644
> --- a/man2/splice.2
> +++ b/man2/splice.2
> @@ -155,7 +155,9 @@ is set to indicate the error.
>   .B EAGAIN
>   .B SPLICE_F_NONBLOCK
>   was specified in
> -.IR flags ,
> +.IR flags
> +or one of the file descriptors had been marked as nonblocking
> +.RB ( O_NONBLOCK ) ,
>   and the operation would block.
>   .TP
>   .B EBADF
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 2/2] tee.2: Note EAGAIN can occur when called on nonblocking file descriptors
  2019-04-12 14:02 ` [PATCH 2/2] tee.2: " Slavomir Kaslev
@ 2019-05-05 10:29   ` Michael Kerrisk (man-pages)
  0 siblings, 0 replies; 5+ messages in thread
From: Michael Kerrisk (man-pages) @ 2019-05-05 10:29 UTC (permalink / raw)
  To: Slavomir Kaslev; +Cc: mtk.manpages, linux-man, linux-kernel, slavomir.kaslev

Hello again Slavomir,

On 4/12/19 9:02 AM, Slavomir Kaslev wrote:
> Signed-off-by: Slavomir Kaslev <kaslevs@vmware.com>

Thanks! Applied.

Cheers,

Michael


> ---
>   man2/tee.2 | 4 +++-
>   1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/man2/tee.2 b/man2/tee.2
> index 7bb0d3a31..03d043b46 100644
> --- a/man2/tee.2
> +++ b/man2/tee.2
> @@ -100,7 +100,9 @@ is set to indicate the error.
>   .B EAGAIN
>   .B SPLICE_F_NONBLOCK
>   was specified in
> -.IR flags ,
> +.IR flags
> +or one of the file descriptors had been marked as nonblocking
> +.RB ( O_NONBLOCK ) ,
>   and the operation would block.
>   .TP
>   .B EINVAL
> 

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, back to index

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-12 14:02 [PATCH 0/2] Add note on splice/tee EAGAIN error when called with nonblocking descriptors Slavomir Kaslev
2019-04-12 14:02 ` [PATCH 1/2] splice.2: Note EAGAIN can occur when called on nonblocking file descriptors Slavomir Kaslev
2019-05-05 10:29   ` Michael Kerrisk (man-pages)
2019-04-12 14:02 ` [PATCH 2/2] tee.2: " Slavomir Kaslev
2019-05-05 10:29   ` Michael Kerrisk (man-pages)

Linux-man Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-man/0 linux-man/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-man linux-man/ https://lore.kernel.org/linux-man \
		linux-man@vger.kernel.org linux-man@archiver.kernel.org
	public-inbox-index linux-man


Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-man


AGPL code for this site: git clone https://public-inbox.org/ public-inbox