linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / 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 related	[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 related	[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, other threads:[~2019-05-05 10:29 UTC | newest]

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)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).