[PATCH] [BZ #18433] Check file access/existence before forking.

navid Rahimi rahimi.nv@gmail.com
Tue Sep 15 22:06:00 GMT 2015


On Wed, Sep 16, 2015 at 2:32 AM, Mike Frysinger <vapier@gentoo.org> wrote:
> how does posix_spawn mangically fix these things ?  it still calls
> fork internally, and the use of the vfork flag is non-portable.
> -mike

I sent a v2 ( in fact v3 ) of patch which solve the bug with pipes in
whole new thread in mailing list,
but personally I have these question too , posix_spawn is just another
layer on top of fork (or vfork) but seems people count on it as hole
another approach .
It is a little hard to understand for me how is it differ from fork
when it is just fork with a bunch of other options.

best wishes,
-navid



More information about the Libc-alpha mailing list