I have a C++ program where I\'m trying to follow the parent process ID chain backward (parent of a parent, parent of a parent of a parent, etc...). The first step is easy -