This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [PATCH] [BZ #18433] Check file access/existence before forking.
- From: navid Rahimi <rahimi dot nv at gmail dot com>
- To: Szabolcs Nagy <szabolcs dot nagy at arm dot com>, Zack Weinberg <zackw at panix dot com>, Florian Weimer <fweimer at redhat dot com>, navid Rahimi <rahimi dot nv at gmail dot com>, GNU C Library <libc-alpha at sourceware dot org>
- Date: Wed, 16 Sep 2015 02:36:53 +0430
- Subject: Re: [PATCH] [BZ #18433] Check file access/existence before forking.
- Authentication-results: sourceware.org; auth=none
- References: <55F19819 dot 3010601 at gmail dot com> <ACDB9D4B-30B6-46C1-9286-5F03594CEACC at panix dot com> <CAOUBrm3oeUVDM-q4VFP08gjEkD2UFaz0Xfq1oGBW+m76rDRu+A at mail dot gmail dot com> <CAKCAbMiYkywWeSiJ5jkH7r8eYMSOWFmYDsjEN3k5ZaTPEeJGXw at mail dot gmail dot com> <55F29C54 dot 5010809 at redhat dot com> <CAKCAbMgoVi6MygLG+7Higntpvum+LC4Z5gBH7CgO+iiFvfCLTA at mail dot gmail dot com> <55F6D3F4 dot 3080703 at arm dot com> <20150915220207 dot GC20252 at vapier dot lan>
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