http://qs1969.pair.com?node_id=88615


in reply to Re: Re: A Quick fork theory question
in thread A Quick fork theory question

Because your child *returns* (after it has done the printing) into the for loop, thereby (next iteration) phorking itself a child - and 2x2 makes 4. BTW it should exit or die"\n".
  • Comment on Re: Re: Re: A Quick fork theory question