Fwd: [PATCH] [BZ #18433] Check file access/existence before forking.
Zack Weinberg
zackw@panix.com
Fri Sep 18 21:59:00 GMT 2015
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
More information about the Libc-alpha
mailing list