We have been using PROC_NOCHILDINIT as the rank when forking the jsonrpc
response handling process. Naturally, this does not initialize the acc
module. Of the ranks defined in sr_module.h, which would be appropriate
here? Switching to PROC_RPC fixes the issue, but I believe that that rank
is really intended for RPC server processes.
Thanks in advance for any input.
--
Matthew Williams
Flowroute LLC
*
*
*Important Notice: * This message is intended only for the person or entity
to which it is addressed. The information provided is confidential.
Accordingly, any review, retransmission, dissemination or other use of
this information by, or disclosure of it to, anyone other than the intended
recipient could have significant adverse effects and is prohibited.
Opinions, conclusions and other information in this message that do not
relate to official business of my company shall be understood as neither
given nor endorsed by it.
Module: sip-router
Branch: mgw/json
Commit: af812b82619e60f744e3aecdb6b07783fb732e4f
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=af812b8…
Author: Matthew Williams <mgwilliams(a)gmail.com>
Committer: Matthew Williams <mgwilliams(a)gmail.com>
Date: Tue May 7 09:55:11 2013 -0700
Merge remote-tracking branch 'origin/4.0' into mgw/json
---
Module: sip-router
Branch: 4.0
Commit: 70ab195f753956a3f891d992787a76c2c4ff643b
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=70ab195…
Author: Olle E. Johansson <oej(a)edvina.net>
Committer: Ovidiu Sas <osas(a)voipembedded.com>
Date: Sat Apr 6 22:04:51 2013 +0200
snmpstats fix typo in Makefile.
(cherry picked from commit bddf66407ef7521f3d1f1e941b4c1e104e59d1ef)
---
modules/snmpstats/Makefile | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/snmpstats/Makefile b/modules/snmpstats/Makefile
index 0086ef1..2d4af2a 100644
--- a/modules/snmpstats/Makefile
+++ b/modules/snmpstats/Makefile
@@ -15,7 +15,7 @@ else
INSTALLMIBDIR = $(cfg-prefix)$(shell net-snmp-config --prefix)/share/snmp/mibs
endif
-ifeq($(EMBEDDED_PERL),1)
+ifeq ($(EMBEDDED_PERL),1)
#
# Enable this part if you compile on Centos 5 or another system that has a
# packaged snmpd with embedded perl and libwrap support
Module: sip-router
Branch: 4.0
Commit: f86be5e0aa282dc58680f28d01161437901fa2c8
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=f86be5e…
Author: Olle E. Johansson <oej(a)edvina.net>
Committer: Ovidiu Sas <osas(a)voipembedded.com>
Date: Sat Apr 6 22:02:48 2013 +0200
snmpstats Add disabled section in Makefile for compilation on Centos systems
Net-SNMP and snmpd can be built with embedded perl and libwrap support. If that's
the case on your system you need to enable the EMBEDDED_PERL section in the
Makefile. Maybe this could be enabled automatically.
(cherry picked from commit 7bbf8fece2cc93c5b1ddd2c3dcc12e8a920dd54d)
---
modules/snmpstats/Makefile | 14 ++++++++++++++
1 files changed, 14 insertions(+), 0 deletions(-)
diff --git a/modules/snmpstats/Makefile b/modules/snmpstats/Makefile
index f518ba6..0086ef1 100644
--- a/modules/snmpstats/Makefile
+++ b/modules/snmpstats/Makefile
@@ -15,6 +15,20 @@ else
INSTALLMIBDIR = $(cfg-prefix)$(shell net-snmp-config --prefix)/share/snmp/mibs
endif
+ifeq($(EMBEDDED_PERL),1)
+#
+# Enable this part if you compile on Centos 5 or another system that has a
+# packaged snmpd with embedded perl and libwrap support
+#
+BUILDAGENTLIBS += -Wl,-E -Wl,-rpath,/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE \
+ -L/usr/local/lib /usr/lib/perl5/5.8.8/i386-linux-thread-multi/auto/DynaLoader/DynaLoader.a \
+ -L/usr/lib/perl5/5.8.8/i386-linux-thread-multi/CORE \
+ -lperl -lresolv -lnsl -ldl -lm -lcrypt -lutil -lpthread -lc \
+ -lwrap \
+ -lsensors \
+ -lrpmdb -lrpm
+endif
+
CFLAGS+=
auto_gen=
NAME=snmpstats.so