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

navid Rahimi rahimi.nv@gmail.com
Fri Sep 11 20:26:00 GMT 2015


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.



More information about the Libc-alpha mailing list