while (1) { while (remaining) { sleep(remaining); while (($pid = wait) != -1) { ... do reaping stuff } } ... check for new jobs and spawn them ... }
Dave.
In reply to Re^3: SIGCHLD and sleep()
by dave_the_m
in thread SIGCHLD and sleep()
by overbyte
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |