ProcessBuilder support for pipelines

Florian Weimer fweimer at
Tue Jul 28 09:36:04 UTC 2015

On 07/28/2015 02:48 AM, Martin Buchholz wrote:
> In the past, when I contemplated doing this, I generally thought that there
> wasn't enough value in such a feature for the effort, given that one can
> start a subprocess shell that supports pipelines.  Does this feature pull
> its weight?

Feeding program arguments to command spawned by a shell is difficult.
There is also no good way to obtain the exit status of the first command
in the pipe.  The last command in the pipe determines the shell exit
status, and earlier commands are ignored.

Florian Weimer / Red Hat Product Security

More information about the core-libs-dev mailing list