[sr-dev] git:4.0: usrloc: re-init sruid struct for each child
Daniel-Constantin Mierla
miconda at gmail.com
Thu Apr 25 09:56:07 CEST 2013
Module: sip-router
Branch: 4.0
Commit: 224cc7ee5c9b6349cbd9755341898a94d97fd958
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=224cc7ee5c9b6349cbd9755341898a94d97fd958
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: Tue Apr 23 13:02:49 2013 +0200
usrloc: re-init sruid struct for each child
- avoid overapping values for xmlrpc handling
(cherry picked from commit 20646b530baa1a2807e52048a8d99d31d2171bb6)
---
modules/usrloc/ul_mod.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/modules/usrloc/ul_mod.c b/modules/usrloc/ul_mod.c
index 36c1842..bbaa996 100644
--- a/modules/usrloc/ul_mod.c
+++ b/modules/usrloc/ul_mod.c
@@ -395,6 +395,9 @@ static int child_init(int _rank)
dlist_t* ptr;
int i;
+ if(sruid_init(&_ul_sruid, '-', "ulcx", SRUID_INC)<0)
+ return -1;
+
if(_rank==PROC_MAIN && ul_timer_procs>0)
{
for(i=0; i<ul_timer_procs; i++)
More information about the sr-dev
mailing list