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.