From owner-freebsd-questions Tue Dec 29 14:09:27 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA19052 for freebsd-questions-outgoing; Tue, 29 Dec 1998 14:09:27 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from icicle.winternet.com (icicle.winternet.com [198.174.169.13]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA19047 for ; Tue, 29 Dec 1998 14:09:24 -0800 (PST) (envelope-from nrahlstr@mail.winternet.com) Received: (from adm@localhost) by icicle.winternet.com (8.8.8/8.8.8) id QAA04477; Tue, 29 Dec 1998 16:08:58 -0600 (CST) Received: from tundra.winternet.com(198.174.169.11) by icicle.winternet.com via smap (V2.0) id xma004455; Tue, 29 Dec 98 16:08:43 -0600 Received: (from nrahlstr@localhost) by tundra.winternet.com (8.8.7/8.8.4) id QAA06677; Tue, 29 Dec 1998 16:08:42 -0600 (CST) Message-ID: <19981229160841.A6397@winternet.com> Date: Tue, 29 Dec 1998 16:08:41 -0600 From: Nathan Ahlstrom To: "Mark E. Rekai" Cc: freebsd-questions@FreeBSD.ORG Subject: Re: setrlimit and forks References: <4.1.19981229163246.0094ad60@wopr.inetu.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2i In-Reply-To: <4.1.19981229163246.0094ad60@wopr.inetu.net>; from Mark E. Rekai on Tue, Dec 29, 1998 at 04:35:09PM -0500 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG "Mark E. Rekai" wrote: > I've got a C program which is used to run apache. In a virtual server > setting, we end up with quite a few instances of apache and would like to > control their resource consumption. > > If I use setrlimit in my C program before apache is called, will this > successfully set limits should a chile process fork (like apache)? Yes. -- Nathan Ahlstrom nrahlstr@winternet.com Run FreeBSD: http://www.freebsd.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message