[sr-dev] [kamailio/kamailio] core: add a module hook for post-fork cleanup (PR #2919)

aalba6675 notifications at github.com
Sat Nov 6 03:13:38 CET 2021

Unfortunately I found code snippets like this:

static int child_init(int rank)
        int i, j;
        int len;
        xhttp_rpc_mod_cmds_t *cmds;
        /* rpc_export_t *rpc_e; */

        if(rank==PROC_MAIN || rank==PROC_TCP_MAIN)
                return 0; /* do nothing for the main process */

So some modules are "aware" of which ranks refer to the main process. 

You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kamailio.org/pipermail/sr-dev/attachments/20211105/957e5c65/attachment-0001.htm>

More information about the sr-dev mailing list