Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Jun 2016 16:38:39 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 210288] File descriptors created by pipe are both read/write
Message-ID:  <bug-210288-8-ndAUkdWPDt@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-210288-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-210288-8@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D210288

Jilles Tjoelker <jilles@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jilles@FreeBSD.org

--- Comment #1 from Jilles Tjoelker <jilles@FreeBSD.org> ---
The FreeBSD man page pipe(2) clearly documents that pipes are bidirectional=
 and
that this is not portable.

Bidirectional pipes were first introduced with STREAMS in System V release =
4,
one of POSIX's source implementations, so POSIX would not disallow them. Si=
nce
SUSv3 and POSIX.1-2001, there has been explicit allowance in the "pipe" pag=
e:

> It is unspecified whether fildes[0] is also open for writing and whether
> fildes[1] is also open for reading.

I agree that this feature is somewhat questionable. It may hide bugs and its
deliberate use is more prone to deadlocks than unidirectional pipes are, bu=
t I
don't think it should be removed.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-210288-8-ndAUkdWPDt>