Module: sip-router Branch: master Commit: 97a616f1e34ef3e2631f2a67e9c36cf3516a0441 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=97a616f1...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: Fri Jan 28 09:26:10 2011 +0100
snmpstats: return from agentx spawning
---
modules_k/snmpstats/snmpstats.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/modules_k/snmpstats/snmpstats.c b/modules_k/snmpstats/snmpstats.c index 248e693..831251b 100644 --- a/modules_k/snmpstats/snmpstats.c +++ b/modules_k/snmpstats/snmpstats.c @@ -285,12 +285,14 @@ static int mod_child_init(int rank) return 0; }
+ /* Spawn SNMP AgentX process */ pid=fork_process(PROC_NOCHLDINIT, "SNMP AgentX", 1); if (pid<0) return -1; /* error */ if(pid==0){ /* child */ agentx_child(1); + return 0; }
/* Spawn a child that will check the system up time. */