|
@@ -334,12 +334,12 @@ int main_loop()
|
|
/* We will call child_init even if we
|
|
/* We will call child_init even if we
|
|
* do not fork
|
|
* do not fork
|
|
*/
|
|
*/
|
|
-/*
|
|
|
|
- if (init_child(1) < 0) {
|
|
|
|
|
|
+
|
|
|
|
+ if (init_child(0) < 0) {
|
|
LOG(L_ERR, "init_child failed\n");
|
|
LOG(L_ERR, "init_child failed\n");
|
|
goto error;
|
|
goto error;
|
|
}
|
|
}
|
|
-*/
|
|
|
|
|
|
+
|
|
return udp_rcv_loop();
|
|
return udp_rcv_loop();
|
|
}else{
|
|
}else{
|
|
for(r=0;r<addresses_no;r++){
|
|
for(r=0;r<addresses_no;r++){
|
|
@@ -352,12 +352,12 @@ int main_loop()
|
|
}
|
|
}
|
|
if (pid==0){
|
|
if (pid==0){
|
|
/* child */
|
|
/* child */
|
|
-/*
|
|
|
|
|
|
+
|
|
if (init_child(i) < 0) {
|
|
if (init_child(i) < 0) {
|
|
LOG(L_ERR, "init_child failed\n");
|
|
LOG(L_ERR, "init_child failed\n");
|
|
goto error;
|
|
goto error;
|
|
}
|
|
}
|
|
-*/
|
|
|
|
|
|
+
|
|
process_no=i+1; /*0=main*/
|
|
process_no=i+1; /*0=main*/
|
|
process_bit = 1 << i;
|
|
process_bit = 1 << i;
|
|
#ifdef STATS
|
|
#ifdef STATS
|