Date: Fri, 18 Mar 2005 22:11:43 -0500 From: Parv <parv@pair.com> To: "Ryan J. Cavicchioni" <ryan@confabulator.net> Cc: FreeBSD Questions <freebsd-questions@freebsd.org> Subject: Re: How to avoid forkbomb? Message-ID: <20050319031143.GA2187@holestein.holy.cow> In-Reply-To: <423B879C.8020402@confabulator.net> References: <423B8314.1000606@confabulator.net> <423B879C.8020402@confabulator.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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 --
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050319031143.GA2187>