child process execution start point


Hi I'm having some doubts with forking child processes.
Where does the child process start to execute? is it right after the fork() sentence ?

thanks

fork() makes an exact duplicate of the calling process. The only difference between the two processes is that fork() will return different values for the parent and for the child.
Ok, that I understand. But my doubt was whether the child process starts executing the code at the begining of the file or after the fork() line.

regards.
Last edited on
Topic archived. No new replies allowed.