in reply to Re: fork question
in thread fork question

Umm, I just though it should be pointed out that your code exits the while loop if it is the child, and loops forever spawning off children like bionic rabbits if it is the parent... at least, it looks it. Child returns 0, so while loop fails, parent gets pid, enters loop, prints pid, forks again, ad nauseum
                - Ant