in reply to waitpid for child #1 inside child #2: any way to make it work?
Some very awkward logic. Understand that there's only one parent here. Not parent #1, parent #2, just the one parent creating two child processes.