Bugtraq mailing list archives
Re: fork()
From: diego () conga super unam mx (Diego Zamboni)
Date: Tue, 12 Dec 1995 13:42:00 -0600
main() { int x; while(x=0;x<1000000;x++) { system("uptime"); fork(); } } Gcc it, run it and whatever system your on will crash. Is their any way to stop users from doing this? I.e. restricting number of process that can run?
In Ultrix, you can edit the maxuprc parameter in the kernel configuration file (/sys/conf/mips/<SYSNAME> or something like that) to limit the number of processes that can be run simultaneously by any single user. You have to rebuild the kernel after that, of course. Regards. --- Diego Martin Zamboni Area de Seguridad en C'omputo diego () conga dgsca unam mx DGSCA, UNAM, Mexico. Tel. (52-5)622-85-29 (NeXTMail ok) Fax. (52-5)622-80-43 WWW home page: http://ds5000.dgsca.unam.mx/~diego/ PGP key: finger diego () conga dgsca unam mx
Current thread:
- Re: fork() Ed Arnold (Dec 11)
- <Possible follow-ups>
- Re: fork() Chris Phillips (Dec 12)
- Re: fork() Diego Zamboni (Dec 12)
- Re: fork() Jeff Uphoff (Dec 14)