I need to set a max number of processes for users
My problem is I need to do something in C and somewhere, somehow I go wrong... Basicly, I try to make some child processes with fork() and somehow, I can't figure out why, it creates a lot of child processes until the system freezes. It would be nice for me to set a max number of processes (like 100 or something) and fork() would return -1. I would like to do this both on Fedora Core 3 and Slackware 10.1, but I think you do it the same way on any distribution... Thank you.
"You could set the limit in /etc/login.defs at ULIMIT value, something like 524288
(as it is in 512-byte units, 524288/512 = 1024 processes)"
for more info take a look at this thread:
|All times are GMT -5. The time now is 09:50 PM.|