|
@@ -156,6 +156,9 @@ struct module_exports exports = {
|
|
|
|
|
|
static int child_init(int rank)
|
|
static int child_init(int rank)
|
|
{
|
|
{
|
|
|
|
+ if (rank==PROC_INIT || rank==PROC_MAIN || rank==PROC_TCP_MAIN)
|
|
|
|
+ return 0; /* do nothing for the main process */
|
|
|
|
+
|
|
auth_db_handle = auth_dbf.init(&db_url);
|
|
auth_db_handle = auth_dbf.init(&db_url);
|
|
if (auth_db_handle == 0){
|
|
if (auth_db_handle == 0){
|
|
LM_ERR("unable to connect to the database\n");
|
|
LM_ERR("unable to connect to the database\n");
|