[sr-dev] When is mod_register() called?

Daniel-Constantin Mierla miconda at gmail.com
Thu Feb 2 10:23:53 CET 2012


Hello,

On 2/2/12 9:42 AM, Alex Hermann wrote:
> On Thursday 02 February 2012 09:34:31 Alex Hermann wrote:
>> On Thursday 02 February 2012 06:03:13 Juha Heinanen wrote:
>>> i went through december commits to master and found that before this
> commit:
>>> http://git.sip-router.org/cgi-bin/gitweb.cgi?p=sip-
>> router;a=commit;h=3775eb7730b2cd5491864109945b31f15df28f1a
>>> sip router works ok with the config below, but does not start after the
>>> commit.
>> This looks suspicious in that commit:
>>
>> +       _tr_buffer_list = (char**)malloc(TR_BUFFER_SLOTS);
>>
>>
>> Try changing it to:
>>
>> +       _tr_buffer_list = (char**)malloc(TR_BUFFER_SLOTS * sizeof(char*));
>
> While looking at this code a question emerged: is mod_register() called before
> or after forking the subprocesses? (I hope the answer is after)
before forking (when the module is loaded), why do you hope is after?

Cheers,
Daniel

-- 
Daniel-Constantin Mierla -- http://www.asipto.com
http://linkedin.com/in/miconda -- http://twitter.com/miconda




More information about the sr-dev mailing list