Skip to content
Permalink
Browse files

Remove old, unused reference to PROC_BIN

(cherry picked from commit 838349d)
  • Loading branch information
bogdan-iancu committed Sep 27, 2019
1 parent 2f3a93e commit 938f71818a3d1cbb318c96ae7869c3f443519e6e
Showing with 4 additions and 6 deletions.
  1. +1 −1 modules/drouting/drouting.c
  2. +1 −1 modules/userblacklist/userblacklist.c
  3. +2 −2 modules/usrloc/ul_mod.c
  4. +0 −1 sr_module.c
  5. +0 −1 sr_module.h
@@ -1857,7 +1857,7 @@ static int dr_child_init(int rank)
* - timer - may trigger routes with dr group
* - workers - execute routes with dr group
* - module's proc - ??? */
if (rank==PROC_TCP_MAIN || rank==PROC_BIN)
if (rank==PROC_TCP_MAIN)
return 0;

LM_DBG("Child initialization on rank %d \n",rank);
@@ -483,7 +483,7 @@ static void rpc_reload_sources(int sender_id, void *unused)

static int child_init(int rank)
{
if (rank==PROC_TCP_MAIN || rank==PROC_BIN)
if (rank==PROC_TCP_MAIN)
return 0;

if (db_init(&db_url, &db_table) != 0) return -1;
@@ -554,8 +554,8 @@ static int child_init(int _rank)
if (!have_db_conns())
return 0;

/* we need connection from SIP workers, BIN and MAIN procs */
if (_rank < PROC_MAIN && _rank != PROC_BIN )
/* we need connection from SIP workers and MAIN procs */
if (_rank < PROC_MAIN )
return 0;

ul_dbh = ul_dbf.init(&db_url); /* Get a new database connection */
@@ -648,7 +648,6 @@ int init_child(int rank)
case PROC_TIMER: type = "PROC_TIMER"; break;
case PROC_MODULE: type = "PROC_MODULE"; break;
case PROC_TCP_MAIN: type = "PROC_TCP_MAIN"; break;
case PROC_BIN: type = "PROC_BIN"; break;
}

if (!type) {
@@ -90,7 +90,6 @@ typedef int (*mod_proc_wrapper)();
#define PROC_TIMER -1 /* Timer attendant process */
#define PROC_MODULE -2 /* Extra process requested by modules */
#define PROC_TCP_MAIN -4 /* TCP main process */
#define PROC_BIN -8 /* Any binary interface listener */

#define DEFAULT_DLFLAGS 0 /* value that signals to module loader to
use default dlopen flags in opensips */

0 comments on commit 938f718

Please sign in to comment.
You can’t perform that action at this time.