This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Fwd: [PATCH] [BZ #18433] Check file access/existence before forking.
- From: Zack Weinberg <zackw at panix dot com>
- To: Mike Frysinger <vapier at gentoo dot org>
- Cc: GNU C Library <libc-alpha at sourceware dot org>
- Date: Fri, 18 Sep 2015 17:59:38 -0400
- Subject: Re: Fwd: [PATCH] [BZ #18433] Check file access/existence before forking.
- Authentication-results: sourceware.org; auth=none
- References: <55F19C50 dot 3010502 at gmail dot com> <1441909606 dot 2948 dot 25 dot camel at pbcl dot net> <CAOUBrm2Kjbk3q+QJACYG24=p1dz60JXimxYG3oRRz2ehpocwkQ at mail dot gmail dot com> <55F299F4 dot 6030907 at arm dot com> <55FC235E dot 6030608 at redhat dot com> <55FC27CB dot 6070602 at arm dot com> <alpine dot LNX dot 2 dot 20 dot 1509181813120 dot 15988 at monopod dot intra dot ispras dot ru> <55FC2EA1 dot 7070001 at arm dot com> <CAKCAbMhpGp5qM-G-RHN9wtS+XbqJr9Cecrku77nw_sdrchci_Q at mail dot gmail dot com> <CAKCAbMjn33eUOCtrE65D8ABqXCd_HzC8XXRj9P2aNfsx+ky4-Q at mail dot gmail dot com> <20150918201302 dot GG2213 at vapier dot lan>
On September 18, 2015 4:13:02 PM EDT, Mike Frysinger <vapier@gentoo.org> wrote:
>On 18 Sep 2015 13:13, Zack Weinberg wrote:
>> From: Zack Weinberg <zackw@panix.com>
>> On Fri, Sep 18, 2015 at 11:32 AM, Szabolcs Nagy
><szabolcs.nagy@arm.com> wrote:
>> > that's surprising: setjmp is standard c
>> > and it is a macro so it cannot be called
>> > through a function pointer.. this is not
>> > true for vfork so it's not clear why gcc
>> > recognizes it.
>>
>> Any function can be annotated with these semantics using
>__attribute__
>> ((returns_twice)), but glibc's headers don't do that
>
>feel like posting a patch ? :)
Is that actually a useful change to make, considering GCC already
knows about vfork?
To be clear, I am not advocating for the use of vfork (in posix_spawn
or otherwise); I am only advocating *against* bothering to make
improvements to posix_spawn.
zw