...
|
...
|
@@ -422,7 +422,7 @@ void handle_sigs()
|
422
|
422
|
" %d\n", chld, WTERMSIG(chld_status));
|
423
|
423
|
#ifdef WCOREDUMP
|
424
|
424
|
LOG(L_INFO, "core was %sgenerated\n",
|
425
|
|
- WCOREDUMP(chld_status) ? "" : "not" );
|
|
425
|
+ WCOREDUMP(chld_status) ? "" : "not " );
|
426
|
426
|
#endif
|
427
|
427
|
}else if (WIFSTOPPED(chld_status))
|
428
|
428
|
LOG(L_INFO, "child process %d stopped by a"
|
...
|
...
|
@@ -559,17 +559,17 @@ int main_loop()
|
559
|
559
|
/*close(udp_sock)*/; /*if it's closed=>sendto invalid fd errors?*/
|
560
|
560
|
}
|
561
|
561
|
}
|
|
562
|
+ /*this is the main process*/
|
|
563
|
+ pids[process_no]=getpid();
|
|
564
|
+ process_bit = 0;
|
|
565
|
+ bind_address=&sock_info[0]; /* main proc -> it shoudln't send anything, */
|
|
566
|
+ bind_idx=0; /* if it does it will use the first address */
|
562
|
567
|
/* if configured to do so, start a server for accepting FIFO commands */
|
563
|
568
|
if (open_fifo_server()<0) {
|
564
|
569
|
LOG(L_ERR, "opening fifo server failed\n");
|
565
|
570
|
goto error;
|
566
|
571
|
}
|
567
|
|
- /*this is the main process*/
|
568
|
|
- pids[process_no]=getpid();
|
569
|
|
- process_bit = 0;
|
570
|
572
|
is_main=1;
|
571
|
|
- bind_address=&sock_info[0]; /* main proc -> it shoudln't send anything, */
|
572
|
|
- bind_idx=0; /* if it does it will use the first address */
|
573
|
573
|
|
574
|
574
|
if (timer_list){
|
575
|
575
|
/* fork again for the attendant process*/
|