in reply to how to get pid for multiple child process in parent process

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.

  • Comment on Re: how to get pid for multiple child process in parent process