I\'m creating child processes in a for-loop. Inside the child process, I can retrieve the child PID with getpid().
for
getpid()
However, for some reas
If you are calling fork in the following way:
pid = fork()
Then pid is in fact your child PID. So you can print it out from the parent.