Skip to content

Commit

Permalink
Remove old, unused reference to PROC_BIN
Browse files Browse the repository at this point in the history
(cherry picked from commit 838349d)
  • Loading branch information
bogdan-iancu committed Sep 27, 2019
1 parent 2f3a93e commit 938f718
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion modules/drouting/drouting.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion modules/userblacklist/userblacklist.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions modules/usrloc/ul_mod.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
1 change: 0 additions & 1 deletion sr_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
1 change: 0 additions & 1 deletion sr_module.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 938f718

Please sign in to comment.