MCPcopy Create free account
hub / github.com/OpenSIPS/opensips / fs_conn_mgr_loop

Function fs_conn_mgr_loop

modules/freeswitch/fs_proc.c:629–655  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

627}
628
629void 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
652out_err:
653 destroy_io_wait(&_worker_io);
654 abort();
655}

Callers

nothing calls this directly

Calls 3

fs_api_set_proc_noFunction · 0.85
apply_socket_commandsFunction · 0.85
destroy_io_waitFunction · 0.85

Tested by

no test coverage detected