NetBSD Problem Report #5475

Received: (qmail 27630 invoked from network); 21 May 1998 01:33:11 -0000
Message-Id: <199805210122.SAA00968@lestat.nas.nasa.gov>
Date: Wed, 20 May 1998 18:22:03 -0700 (PDT)
From: Jason R Thorpe <thorpej@nas.nasa.gov>
Reply-To: thorpej@netbsd.org
To: gnats-bugs@gnats.netbsd.org
Subject: /bin/sh does not use vfork when doing a fork/exec pair
X-Send-Pr-Version: 3.95

>Number:         5475
>Category:       bin
>Synopsis:       /bin/sh does not use vfork when doing a fork/exec pair
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    elric
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Wed May 20 18:35:00 +0000 1998
>Closed-Date:    Sat Sep 28 23:20:09 +0000 2002
>Last-Modified:  Sat Sep 28 23:20:09 +0000 2002
>Originator:     Jason R Thorpe
>Release:        19980520
>Organization:
Numerical Aerospace Simulation Facility - NASA Ames
>Environment:

System: NetBSD lestat 1.3E NetBSD 1.3E (LESTAT) #134: Wed May 20 14:43:22 PDT 1998 thorpej@lestat:/tmp_mnt/dracul/u5/netbsd/src/sys/arch/sparc/compile/LESTAT sparc


>Description:
	/bin/sh does not use vfork when it does a fork/exec pair.  Use
	of vfork in this case would likely provide a nice performance boost.

>How-To-Repeat:
	Inspect code.

>Fix:
	None supplied.  The interface to forkshell() will probably have to
	change.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: bin-bug-people->elric 
Responsible-Changed-By: fair 
Responsible-Changed-When: Mon Jun 5 13:53:09 PDT 2000 
Responsible-Changed-Why:  
Roland has been working on this one. 
State-Changed-From-To: open->analyzed 
State-Changed-By: elric 
State-Changed-When: Wed Mar 27 12:38:10 PST 2002 
State-Changed-Why:  
I've begun work on this again, except this time on a branch until I get 
the niggles shaken out.  The branch is from src/bin/sh [only] and is 
called ELRICshvfork. 
State-Changed-From-To: analyzed->closed 
State-Changed-By: elric 
State-Changed-When: Sat Sep 28 16:19:32 PDT 2002 
State-Changed-Why:  
This one is done.  Christos Zoulas finished this up, and Charles Hannum 
provided much support and many bug fixes. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.49 2026/05/14 01:52:41 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.