[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: limitar forks



On Sat, 30 Jun 2001 02:14:43 +0000
Alex Gripp <sl4ck@engenharia.uff.br> wrote:

> Ae manos, gostaria de saber alguma forma de limitar os processos por users especificamente em GNU/Linux
> Pq sempre ao executar o c0de abaixo o c0de vai dexando a maquina lenta ate travar por completo!
> #include <stdio.h>
> main(){
> while(1){
> fork();
> }
> }
> Teria alguma forma de resolver isso ?   
> Grato e []'s
> 
> -- 
> * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
> * Alex Gripp <sl4ck>       Niterói - RJ                                                *
[...]

Se eu não me engano, o ulimit faz isso...

man ulimit :)

-- 
Carlos Eduardo P. Santiviago [a.k.a. segfault] - <segfault@mail.com>
Key ID 1024D/C84CF5F4 <-> ICQ UIN: 3556263
Key fingerprint = 0217 8326 65AB 967A FA5D  3B63 1737 1528 C84C F5F4

Attachment: pgppNnBZjAF2h.pgp
Description: PGP signature


Reply to: