|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Re: fork()
Diego Zamboni (diego
conga.super.unam.mx)Tue, 12 Dec 1995 13:42:00 -0600
- Messages sorted by: [ date ][ thread ][ subject ][ author ]
- Next message: Tom Jones: "Re: fork()"
- Previous message: Chris Phillips: "Re: fork()"
- Maybe in reply to: Alex Leipold: "fork()"
- Next in thread: Jeff Uphoff: "Re: fork()"
> 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
- Next message: Tom Jones: "Re: fork()"
- Previous message: Chris Phillips: "Re: fork()"
- Maybe in reply to: Alex Leipold: "fork()"
- Next in thread: Jeff Uphoff: "Re: fork()"