cvs commit: src/include Makefile spawn.h unistd.h src/lib/libc/gen Makefile.inc Symbol.map exec.3 exec.c posix_spawn.c

Kostik Belousov kostikbel at gmail.com
Tue Jun 17 14:26:51 UTC 2008


On Tue, Jun 17, 2008 at 09:48:28AM -0400, David Schultz wrote:
> On Tue, Jun 17, 2008, David Xu wrote:
> > davidxu     2008-06-17 06:26:29 UTC
> > 
> >   FreeBSD src repository
> > 
> >   Modified files:
> >     include              Makefile unistd.h 
> >     lib/libc/gen         Makefile.inc Symbol.map exec.3 exec.c 
> >   Added files:
> >     include              spawn.h 
> >     lib/libc/gen         posix_spawn.c 
> >   Log:
> >   SVN rev 179838 on 2008-06-17 06:26:29Z by davidxu
> >   
> >   Add POSIX routines called posix_spawn() and posix_spawnp(), which
> >   can be used as replacements for exec/fork in a lot of cases. This
> >   change also added execvpe() which allows environment variable
> >   PATH to be used for searching executable file, it is used for
> >   implementing posix_spawnp().
> >   
> >   PR: standards/122051
> 
> I have no objections to this, but doesn't it defeat the whole
> purpose to implement posix_spawn() as a library function that just
> calls fork/exec?

How it can be ? Unless there is some problem with implementation,
it shall be ok. Also, SUSv3 explicitely stated that design of the
posix_spawn allows it to be implemented as fork/exec.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/cvs-src/attachments/20080617/652f2691/attachment.pgp


More information about the cvs-src mailing list