I have this bit of code :
#include<stdio.h>
void createChild(){
int pid;
pid=fork();
if(pid<0){
printf("creation error");exit()
}
if(pid>0)return;
printf("Processus of number %d\n",getpid());
}
int main()
{
createChild();
createChild();
createChild();
}
I need to know how many process this code generate and a proper explanation ? please any help