If I forkand the child process, and then execcreate more child processes (which themselves can create more processes), how can I get a list of pidall descendant processes from the first process?
Is there a better way, except for the loop /proc/and check PPid(parent process id) of each process?
source
share