From owner-freebsd-questions@FreeBSD.ORG Sat Mar 19 03:11:52 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CB4D216A4CE for ; Sat, 19 Mar 2005 03:11:52 +0000 (GMT) Received: from mta10.adelphia.net (mta10.adelphia.net [68.168.78.202]) by mx1.FreeBSD.org (Postfix) with ESMTP id 51DAB43D5C for ; Sat, 19 Mar 2005 03:11:52 +0000 (GMT) (envelope-from parv@pair.com) Received: from default.chvlva.adelphia.net ([69.160.65.223]) by mta10.adelphia.netESMTP <20050319031151.YWUJ7277.mta10.adelphia.net@default.chvlva.adelphia.net>; Fri, 18 Mar 2005 22:11:51 -0500 Received: by default.chvlva.adelphia.net (Postfix, from userid 1000) id 1B934B525; Fri, 18 Mar 2005 22:11:44 -0500 (EST) Date: Fri, 18 Mar 2005 22:11:43 -0500 From: Parv To: "Ryan J. Cavicchioni" Message-ID: <20050319031143.GA2187@holestein.holy.cow> Mail-Followup-To: "Ryan J. Cavicchioni" , FreeBSD Questions References: <423B8314.1000606@confabulator.net> <423B879C.8020402@confabulator.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <423B879C.8020402@confabulator.net> cc: FreeBSD Questions Subject: Re: How to avoid forkbomb? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: f-q List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 19 Mar 2005 03:11:52 -0000 in message <423B879C.8020402@confabulator.net>, wrote Ryan J. Cavicchioni thusly... > > Ryan J. Cavicchioni wrote: ... > >I decided to give the forkbomb script a try which is below: > > > >#!/bin/sh > > > >$0 & $0 & > > > >The system was unresponsive for a couple minutes but then FreeBSD > >killed the script and the system was accessible. > > > >I started looking around for what my process limit was set at but FWIW, i tried a version (in ksh88 and possibly whatever /bin/sh would have been) on Sun Solaris 2.something (on Sparc), which caused ... absolutely nothing. IIRC, the version i tried was something like... :(){ :|:& }; while true; do :; done - Parv --