From owner-freebsd-hackers Mon Nov 3 17:01:26 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id RAA19037 for hackers-outgoing; Mon, 3 Nov 1997 17:01:26 -0800 (PST) (envelope-from owner-freebsd-hackers) Received: from freebie.lemis.com (gregl1.lnk.telstra.net [139.130.136.133]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id RAA19032; Mon, 3 Nov 1997 17:01:21 -0800 (PST) (envelope-from grog@freebie.lemis.com) Received: (from grog@localhost) by freebie.lemis.com (8.8.7/8.8.5) id LAA22874; Tue, 4 Nov 1997 11:31:11 +1030 (CST) Message-ID: <19971104113110.52901@lemis.com> Date: Tue, 4 Nov 1997 11:31:10 +1030 From: Greg Lehey To: Charles Mott Cc: freebsd-questions@FreeBSD.ORG Subject: Re: Maximum number of forked processes References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.84e In-Reply-To: ; from Charles Mott on Mon, Nov 03, 1997 at 04:16:36PM -0700 Organisation: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 WWW-Home-Page: http://www.lemis.com/~grog Follow-up-to: hackers Sender: owner-freebsd-hackers@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk On Mon, Nov 03, 1997 at 04:16:36PM -0700, Charles Mott wrote: > How does one control the maximum number of forked processes from within > the parent process? I suppose the answer is "manually". setrlimit(2) allows you to limit the number of processes (=forks) per user, but I don't know of anything that would limit the number of children of a process. > Since this is an elementary question but regards programming, I was > uncertain whether to send it to -questions or -hackers. In fact, I'd think that this is worthy of -hackers, so I'm following up there. Greg