counts the number of processes created by OpenSIPS at startup. processes * that also do child_init() (the per-process module init) * * used for proper status return code */
| 405 | * used for proper status return code |
| 406 | */ |
| 407 | int count_init_child_processes(void) |
| 408 | { |
| 409 | int ret=0; |
| 410 | |
| 411 | /* listening children to be create at startup */ |
| 412 | ret += udp_count_processes(NULL); |
| 413 | ret += tcp_count_processes(NULL); |
| 414 | ret += timer_count_processes(NULL) - 2/*for keeper & trigger*/; |
| 415 | |
| 416 | /* attendent */ |
| 417 | ret++; |
| 418 | |
| 419 | /* count number of module procs going to be initialised */ |
| 420 | ret += count_module_procs(PROC_FLAG_INITCHILD); |
| 421 | |
| 422 | LM_DBG("%d children are going to be inited\n",ret); |
| 423 | return ret; |
| 424 | } |
| 425 | |
| 426 | /* counts the number of processes known by OpenSIPS at startup. |
| 427 | * Note that the number of processes might change during init, if one of the |
no test coverage detected