Messages in this thread |  | | Date | Mon, 9 Sep 1996 00:43:26 -0700 (PDT) | From | "Shane R. Stixrud" <> | Subject | Fork bomb. |
| |
Has anyone thought of a way to possibly put a limit on the amount of resources to alow anyone process. For example the following code is a common fork bomb used by people to cause systems to crash. When ran on this system it crashs the kernel within seconds and even after its killed I have waited an hour, and the harddrive was still spinning :). There has to be a way to prevent something like this from causeing such a problem.
main() { int *root; while(1) { root=(int *)malloc(10000); fork(); } }
-====================================================- -= Senders Name : Shane Robert Stixrud =- -= Company Name : CyberChoice Solutions =- -= Email Address: root@nebula.com, seven@nebula.com =- -====================================================-
|  |