Will this program succeed in forking 10 times?

timeToFork = 10;

for(int i = 0; i < timesToFork; ++i) {
pid = fork();

if(pid == -1) {
perror("Failed to fork.");
exit();
}
}

After 10 times will I reside in the 10th process?
Topic archived. No new replies allowed.