On Thu, 12 Sep 2002, Logu wrote:
> > > bash$ :(){ :|:&};:
>
> what is the purpose of piping here. Or where do we use piping the out
> to a function.
well, compare these two :(){:};: and :(){ :|&};:
which looks better?
Ok. The pipe is useless, what's really import is the & which makes sure
that all the processes run in parallel instead of sequentially - which
would be of no use. The pipe only increases the number of forks per
call, so the (already) exponential forking now has a larger base (2 ->
3)
> > if my guess is right, it's a fork bomb.
>
> How to prevent this fork bomb in linux. I think in solaris, these
> things are prevented by default.
man ulimit, or see the pam documentation for pam_limits.
--
If God had a beard, he'd be a UNIX programmer.
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help