for(i=1;i<CONFIG_POLLER_FORKS;i++)
{
if((pid = fork()) == 0)
{
server_num=i;
break;
}
else
{
pids[i-1]=pid;
}
}
in this code:
the fork occurs just inside this little cut of code, I don't understand
if,
- in first fork(),
is create a child and it entries in if,
server_num receive a number 1
in break; i don't understand if, both child and parent break, or
just parent, and this child, continue or
execute de for() white parent?
excuse-me my inglish, I'm brazilian