Erm, is there some problem with declaring an array outside of the for loop and storing them there as fork returns them that you've already encountered and that's why you've already dismissed the obvious solution?
The cake is a lie.
The cake is a lie.
The cake is a lie.
In reply to Re: how to get pid for multiple child process in parent process
by Fletch
in thread how to get pid for multiple child process in parent process
by sonalig
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |