Subject: Re: Fork bomb protection patch
To: M. Warner Losh <imp@bsdimp.com>
From: Jaromir Dolecek <jdolecek@netbsd.org>
List: tech-kern
Date: 12/06/2002 10:01:24
M. Warner Losh wrote:
> Actually, yes it is hard.  I've cleaned up from several fork bombs and
> you gotta get the right ps | grep | xargs kill right or the fork bomb
> surives.  Even then there is a race between the ps and more processes
> forking.  I usually have to run my ps | grep| xargs kill command
> several times in a row to completely kill the forkbomb w/o a rate
> limiter.

pkill is your friend :)
 
Jaromir
-- 
Jaromir Dolecek <jdolecek@NetBSD.org>            http://www.NetBSD.org/
-=- We should be mindful of the potential goal, but as the tantric    -=-
-=- Buddhist masters say, ``You may notice during meditation that you -=-
-=- sometimes levitate or glow.   Do not let this distract you.''     -=-