| 627 | } |
| 628 | |
| 629 | void fs_conn_mgr_loop(int proc_no) |
| 630 | { |
| 631 | fs_api_set_proc_no(); |
| 632 | |
| 633 | #ifdef EXTRA_DEBUG |
| 634 | LM_DBG("size: %d, method: %d\n", reactor_size, io_poll_method); |
| 635 | #endif |
| 636 | |
| 637 | if (init_worker_reactor("FS Manager", RCT_PRIO_MAX) != 0) { |
| 638 | LM_BUG("failed to init FS reactor"); |
| 639 | abort(); |
| 640 | } |
| 641 | |
| 642 | if (reactor_add_reader(IPC_FD_READ_SELF, F_IPC, RCT_PRIO_ASYNC, NULL)<0){ |
| 643 | LM_CRIT("failed to add IPC pipe to FS reactor\n"); |
| 644 | abort(); |
| 645 | } |
| 646 | |
| 647 | /* connect to all FS sockets created on mod_init() or modparam */ |
| 648 | apply_socket_commands(); |
| 649 | |
| 650 | reactor_main_loop(FS_REACTOR_TIMEOUT, out_err, apply_socket_commands()); |
| 651 | |
| 652 | out_err: |
| 653 | destroy_io_wait(&_worker_io); |
| 654 | abort(); |
| 655 | } |
nothing calls this directly
no test coverage detected