You are not logged in.

#1 2006-05-02 09:14:06

EAD
Member
Registered: 2006-03-11
Posts: 255

too many process

Hii, I have noticed a bug in linux, when I am making a program in C that do

while(true) fork();

and then run it on other host, the kernel get stuck after a while.
Is there a way to protect against it?
and sencond, after the user have disconncet, Can I kill all those process?
and third, How can I limit the cpu use of each user so no on will make the cpu too busy?
I need the answers as a "root" and also as a reguler user what to do.
Tanx:)

Offline

#2 2006-05-02 10:50:08

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: too many process

Search the forum for forkbombs and limits.conf.

Offline

Board footer

Powered by FluxBB