The while (%pids) block should be outside of the foreach.
Right now you're doing a fork and then waiting for the child to finish before starting the next one.
In reply to Re: fork() not working as expected
by Crackers2
in thread fork() not working as expected
by Gangabass
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |