How many child processes are you forking off? All systems I know of impose a limit in the number of children a process can have (except if it's owned by root). Some also limit the number of processes a user can have. The specific number varies by system.
If you are going over the limit, you'll need to impose a throttle. For example, if the number of children exceeds some high water mark, don't go into the accept, but do a blocking wait until the number drops.
In reply to Re: Understanding fork + wait
by VSarkiss
in thread Understanding fork + wait
by jplindstrom
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |