From owner-freebsd-questions Mon Sep 22 22:48:54 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id WAA19768 for questions-outgoing; Mon, 22 Sep 1997 22:48:54 -0700 (PDT) Received: from ganymede.or.intel.com (root@ganymede.or.intel.com [134.134.248.3]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id WAA19761 for ; Mon, 22 Sep 1997 22:48:48 -0700 (PDT) Received: from ichips.intel.com (ichips.intel.com [134.134.50.200]) by ganymede.or.intel.com (8.8.6/8.8.5) with ESMTP id WAA03508; Mon, 22 Sep 1997 22:52:41 -0700 (PDT) Received: from mh-relay by ichips.intel.com (8.7.4/jIIIa) id WAA13561; Mon, 22 Sep 1997 22:48:38 -0700 (PDT) Message-Id: <199709230548.WAA13561@ichips.intel.com> To: Doug White cc: "Goeringer, Michael" , "'Steve Hovey'" , "'freebsd-questions@freebsd.org'" Subject: Re: capping forks In-reply-to: Your message of "Mon, 22 Sep 1997 21:17:53 PDT." Date: Mon, 22 Sep 1997 22:48:39 -0700 From: Sri Ramkrishna Sender: owner-freebsd-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk In message you write: > On Mon, 22 Sep 1997, Goeringer, Michael wrote: > > > In the kernel you can set CHILD_MAX=. Ofcourse this > > affects the entire system so Doug may have a better solution. > > I couldn't think of anything offhand. I'm not familiar with the login > capabilities database though, there is a ``maxproc'' item that could be > used to limit the number of childs. This would be user-wide and not > overridable very easily. First off, I'm not sure what the original thread was, this just caught my interest. Under BASH, you can use "limit" to set limit the number of processes a user can have. You could write a wrapper script around the application with this set using bash. I don't think tcsh or ksh has an equivalent. So you would have to install bash. Depending on your frame of mind, it could be a good or a bad thing. :-) Alternatively, if you have source, you could use select to limit the number of calls to accept you could have. (although you don't even need select for that) sri