From owner-freebsd-hackers Tue Jun 22 8: 4:39 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from penelope.skunk.org (unknown [208.133.204.51]) by hub.freebsd.org (Postfix) with ESMTP id 5208514A13 for ; Tue, 22 Jun 1999 08:04:36 -0700 (PDT) (envelope-from ben@penelope.skunk.org) Received: from localhost (ben@localhost) by penelope.skunk.org (8.9.3/8.9.3) with ESMTP id PAA16028; Tue, 22 Jun 1999 15:02:42 GMT Date: Tue, 22 Jun 1999 15:02:42 +0000 (GMT) From: Ben Rosengart To: Sheldon Hearn Cc: John Baldwin , freebsd-hackers@FreeBSD.ORG, David Malone , John Baldwin Subject: Re: Inetd and wrapping. In-Reply-To: <2235.930063703@axl.noc.iafrica.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 22 Jun 1999, Sheldon Hearn wrote: > On Tue, 22 Jun 1999 14:53:28 GMT, Ben Rosengart wrote: > > > But if you can turn off wrapping, you can save a fork()/exec() per > > connection. > > The only exec is an execv() at line 740 of inetd.c, which launches the > program that will service a request. It's done irrespective of wrapping. > So you can save a fork, not an exec. Forks are cheap. Oh, duh. I was still thinking in terms of tcpd, not libwrap. -- Ben UNIX Systems Engineer, Skunk Group StarMedia Network, Inc. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message