소스 검색

snmpstats: return from agentx spawning

Daniel-Constantin Mierla 14 년 전
부모
커밋
97a616f1e3
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      modules_k/snmpstats/snmpstats.c

+ 2 - 0
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. */