It's not obvious what happens when a child hits the end of the infinite while loop, but I would expect it will keep looping and become a parent of its own children. It's usually correct for child processes to explicitly exit when they are done DWIMming.