aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2012-03-30 11:41:57 +1300
committerMichael Kerrisk <mtk.manpages@gmail.com>2016-03-05 08:52:29 +0100
commit89cfe0cf65766996cf147ad481c7243d9f10e690 (patch)
tree7f4cd27b994e757e43791d2b817a2a26624d1544
parentdf383cdf95d3312dec52b51f71988cbe06adb0eb (diff)
downloadman-pages-89cfe0cf65766996cf147ad481c7243d9f10e690.tar.gz
pipe.2: Note treatment of 'pipefd' on error
Reported-by: Eric Blake <eblake@redhat.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
-rw-r--r--man2/pipe.214
1 files changed, 14 insertions, 0 deletions
diff --git a/man2/pipe.2 b/man2/pipe.2
index 642cd18e24..9ed29056c9 100644
--- a/man2/pipe.2
+++ b/man2/pipe.2
@@ -135,6 +135,20 @@ On success, zero is returned.
On error, \-1 is returned, and
.I errno
is set appropriately.
+
+On Linux (and other systems),
+.BR pipe ()
+does not modify
+.I pipefd
+on failure.
+A requirement standardizing this behavior was added in POSIX.1-2016.
+.\" http://austingroupbugs.net/view.php?id=467
+The Linux-specific
+.BR pipe2 ()
+system call
+likewise does not modify
+.I pipefd
+on failure.
.SH ERRORS
.TP
.B EFAULT