From owner-cvs-src@FreeBSD.ORG Tue Jun 17 17:59:24 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 9A929106566B; Tue, 17 Jun 2008 17:59:24 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (bigknife-pt.tunnel.tserv9.chi1.ipv6.he.net [IPv6:2001:470:1f10:75::2]) by mx1.freebsd.org (Postfix) with ESMTP id 2D9D88FC1D; Tue, 17 Jun 2008 17:59:24 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from localhost.corp.yahoo.com (john@localhost [IPv6:::1]) (authenticated bits=0) by server.baldwin.cx (8.14.2/8.14.2) with ESMTP id m5HHx90J047041; Tue, 17 Jun 2008 13:59:16 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: Maxim Sobolev Date: Tue, 17 Jun 2008 11:22:40 -0400 User-Agent: KMail/1.9.7 References: <200806170633.m5H6XMJH084600@repoman.freebsd.org> <20080617140600.GE1176@hoeg.nl> <4857D508.8070907@FreeBSD.org> In-Reply-To: <4857D508.8070907@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset="koi8-u" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200806171122.41340.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [IPv6:::1]); Tue, 17 Jun 2008 13:59:16 -0400 (EDT) X-Virus-Scanned: ClamAV 0.91.2/7494/Tue Jun 17 00:46:03 2008 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-1.7 required=4.2 tests=AWL,BAYES_00,NO_RELAYS, SUBJECT_ENCODED_TWICE,SUBJECT_EXCESS_QP autolearn=no version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: Ed Schouten , src-committers@freebsd.org, David Xu , cvs-all@freebsd.org, cvs-src@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 17:59:24 -0000 On Tuesday 17 June 2008 11:15:20 am Maxim Sobolev wrote: > Ed Schouten wrote: > > * David Schultz wrote: > >> 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? > > > > When (if?) applications start to use posix_spawn() we may decide to move > > it into the kernel at any time. It should be okay for now. > > Are there any benefits of doing it in the kernel vs. doing it via fork+exec? Speed. You don't have to go mark all your pages as COW or some such only to turn around and throw the new mappings away and undo that. -- John Baldwin