3 ms·
It does copy the PC. Actually it just return from the fork call twice, one in the parent and one in the child, with different return values, the pid of the chil
by cjg_ 12y ago
It does copy the PC. Actually it just return from the fork call twice, one in the parent and one in the child, with different return values, the pid of the child to the parent and zero to the child.
See http://linux.die.net/man/2/fork http://linux.die.net/man/2/fork for more details