On Tue, Sep 20, 2011 at 01:41:35AM +0300, Paul Irofti wrote:
> This time its their pipe2 system call which adds flags to the pipe call.
> Its the unix-ish way apparently to turn pipes into files on a kernel
> filesystem, or so they claim.

No, the idea is to make it possible to set O_CLOEXEC atomically. Of
course, the pipe2 system call as implemented in Linux is kind of messed
up, since the flag attribute applies to both sides of the pipe. The use
cases of pipes that don't involve exec are limited (using pipes to
terminate poll/select loops from signal handles, communication between a
fork'd hord of children), so I am kind of waiting for pipe3 to appear...

Joerg

Reply via email to