Of course, this only gets work done, and kind of makes it difficult for the children to report back to the parent with results. If you want that functionality you probably want to make use of something like pipe or a piped open call.while (host = pop array_of_hosts) { fork if child { work on host exit } }
In reply to Re: Using a stack with fork()
by Fastolfe
in thread Using a stack with fork()
by mp3car-2001
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |