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: Roland McGrath <roland at hack dot frob dot com>
- Cc: GNU C Library <libc-alpha at sourceware dot org>
- Date: Sat, 12 Sep 2015 00:56:47 +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> <20150911201830 dot E8D472C3A73 at topped-with-meat dot com>
On Sat, Sep 12, 2015 at 12:48 AM, Roland McGrath <roland@hack.frob.com> wrote:
> access has the wrong semantics. You could use euidaccess. But then that
> will has the wrong semantics if POSIX_SPAWN_RESETIDS was used. It quickly
> gets quite hairy. Trying to match the semantics that execve will use after
> everything that posix_spawn might be doing in the child side is a losing
> battle.
About using access/euidaccess , both are dead end. So I get over it.
I thought best approach would be using pipe's but pipes are not
available all the time.