[OpenSIPS-Users] how to identify a children process

Bogdan-Andrei Iancu bogdan at voice-system.ro
Tue Dec 8 22:08:52 CET 2009


Hi Italo,

Use the "process_no" exported by pt.h

That is an internal numerical ID.

Regards,
Bogdan

Italo Dacosta wrote:
> Hello,
>
> I would like to know if there is a way to identify a children process in
>  the code. I know I could use something like getpid() to uniquely
> identify the process in the code but I was wondering if there is already
> a variable storing such information that I could use for that purpose.
>
>
> Also, I have notice that each children process establishes a connection
> to the database when using digest authentication. When doing queries to
> the database, each children process use a different connection variable
> to talk to the database, or they use the same one?
> If each children process use a different connection variable, how does
> it know what connection variable to use?
>
> Thanks,
> ID
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>   


-- 
Bogdan-Andrei Iancu
www.voice-system.ro




More information about the Users mailing list