Re: memory crash

Alan Cox (alan@lxorguk.ukuu.org.uk)
Wed, 11 Dec 1996 22:20:23 +0000 (GMT)


> 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