introduce the walk_process_tree() helper