mirror of https://github.com/mkerrisk/man-pages
pipe.2: Note treatment of 'pipefd' on error
Reported-by: Eric Blake <eblake@redhat.com> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
df383cdf95
commit
89cfe0cf65
14
man2/pipe.2
14
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
|
||||
|
|
Loading…
Reference in New Issue