From owner-cvs-src@FreeBSD.ORG Tue Jun 17 13:47:44 2008 Return-Path: Delivered-To: cvs-src@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 38B441065675; Tue, 17 Jun 2008 13:47:44 +0000 (UTC) (envelope-from das@FreeBSD.ORG) Received: from zim.MIT.EDU (ZIM.MIT.EDU [18.95.3.101]) by mx1.freebsd.org (Postfix) with ESMTP id 767258FC20; Tue, 17 Jun 2008 13:47:43 +0000 (UTC) (envelope-from das@FreeBSD.ORG) Received: from zim.MIT.EDU (localhost [127.0.0.1]) by zim.MIT.EDU (8.14.2/8.14.2) with ESMTP id m5HDmSMG030109; Tue, 17 Jun 2008 09:48:28 -0400 (EDT) (envelope-from das@FreeBSD.ORG) Received: (from das@localhost) by zim.MIT.EDU (8.14.2/8.14.2/Submit) id m5HDmSqq030108; Tue, 17 Jun 2008 09:48:28 -0400 (EDT) (envelope-from das@FreeBSD.ORG) Date: Tue, 17 Jun 2008 09:48:28 -0400 From: David Schultz To: David Xu Message-ID: <20080617134828.GA30076@zim.MIT.EDU> Mail-Followup-To: David Xu , src-committers@FreeBSD.ORG, cvs-src@FreeBSD.ORG, cvs-all@FreeBSD.ORG References: <200806170633.m5H6XMJH084600@repoman.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200806170633.m5H6XMJH084600@repoman.freebsd.org> Cc: cvs-src@FreeBSD.ORG, src-committers@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 X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Jun 2008 13:47:44 -0000 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?