- if (++subs < 10)
- {
- signal(SIGALRM,ignoreit);
- alarm(5);
- }
- /*
- * Note: we expect the alarm to cause a system
- * call aborted error thus to fall out of the wait()
- * if no processes need to be recovered after 5 seconds
- *
- * This patch is intended to limit the number of
- * processes the network can create at anytime
- * to keep from running out of processes per uid
- */
- while( wait(&dummy) != -1) if (subs) --subs;