in reply to How to fork one and only one child process from a loop ?
In that case, once waitpid returns a status value that indicates the child process is finished, you can reset the $kidpid value to zero, so that your loop can launch another child if it wants to.
|
|---|