the more "fun" version of this program
main ()
{
while (fork())
fork(4096);
}
Ohhh thats so bad..
///////////////////////////////////////////////////////////\\\\\\\\\\\\\\\\\\\
Jon Torrez | http://127.0.0.1 | come on and visiteh?
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\///////////////////
On Wed, 11 Dec 1996, Alan Cox wrote:
>
> > I don't think you have to go to all that trouble. The following code
> > will hang my system AND a Sun witb SinOs 4.3
> >
> > main()
> > {
> > char x[2048];
> > main();
> > }
> >
> > Eventually the drive that contains the swap file will come on continuously
> > and there is too little available CPU time to kill the task .....
>
> You should have resource limits set to stop your users doing this if it
> worries you.
>
> Alan
>
>