Date: Tue, 17 Jun 2008 17:05:07 +0300 From: Kostik Belousov <kostikbel@gmail.com> To: David Schultz <das@freebsd.org> Cc: cvs-src@freebsd.org, src-committers@freebsd.org, David Xu <davidxu@freebsd.org>, cvs-all@freebsd.org Subject: Re: cvs commit: src/include Makefile spawn.h unistd.h src/lib/libc/gen Makefile.inc Symbol.map exec.3 exec.c posix_spawn.c Message-ID: <20080617140507.GM82830@deviant.kiev.zoral.com.ua> In-Reply-To: <20080617134828.GA30076@zim.MIT.EDU> References: <200806170633.m5H6XMJH084600@repoman.freebsd.org> <20080617134828.GA30076@zim.MIT.EDU>
next in thread | previous in thread | raw e-mail | index | archive | help
--TxukmIqg3MmZ0Kmh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 > >=20 > > FreeBSD src repository > >=20 > > Modified files: > > include Makefile unistd.h=20 > > lib/libc/gen Makefile.inc Symbol.map exec.3 exec.c=20 > > Added files: > > include spawn.h=20 > > lib/libc/gen posix_spawn.c=20 > > Log: > > SVN rev 179838 on 2008-06-17 06:26:29Z by davidxu > > =20 > > 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(). > > =20 > > PR: standards/122051 >=20 > 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. --TxukmIqg3MmZ0Kmh Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (FreeBSD) iEYEARECAAYFAkhXxJIACgkQC3+MBN1Mb4jrlgCg5bdQpUsKHTDcVJLYQABXsQyV eD0AoLiFp0/y45T7LYQUx4pf4Vnh6EDG =87Vq -----END PGP SIGNATURE----- --TxukmIqg3MmZ0Kmh--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080617140507.GM82830>