Why snmpdemo always stop after invoked by Master agent?
(1) I have useed "mibcodegen" to generate a code sample from "mib_demo.txt" which is in SUNWconn/sea/snmp/sample ;
(2) I have never modify any code except "Makefile"
(3) I use make to build a "snmpdemod" and reset snmpdemo.reg , snmpdemo.acl, snmpdemo.rsrc and snmpdemo.snmprelay;
(4) Then I run command as follow:
# ./snmpdx -y -c /etc/snmp/conf
# ps -ef | grep snmp
root 44011 0 09:10:08 pts/30:00 snmpdemod -p 8041 -i 4
root 43991 0 09:10:03 pts/30:00 ./snmpdx -y -c /etc/snmp/conf
(5) But after a moment ,snmpdemod had stopped .
Question:
(1) To be a daemon snmp subagent ,do I have to modify "agent_loop" in snmpdemo_appl.c ?
(2) Who could give me a code sample about "daemon"
I come from China , so I could not get more information about solaris,please help me .
Thanks in advance.

