This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]