2009/6/10 Need Help <[email protected]>: > However, I just noticed there are many calls to the "exit( )" > routine used throughout the master agent code.
If you look more closely, these "exit()" routines only occur in three files: - auto_nlist.c - kernel.c - snmpd.c The third of these is the wrapper structure for the Net-SNMP standalone agent application. The code for the core of the master agent is in the file 'snmp_agent.c' - which doesn't call 'exit()' at all. If you are embedding the master agent within another application, you shouldn't be using the 'snmpd.c' code at all. As for the other two files, all of the occurances of 'exit()' are already protected by suitable tests - either the run-time boolean flag NETSNMP_DS_AGENT_NO_ROOT_ACCESS, or the compile-time definition NETSNMP_EXIT_ON_BAD_KLREAD If you configure things correctly, none of these should ever be called - regardless of whether the kernel information is accessible or not. Dave ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
