On Mon, Feb 28, 2011 at 02:21:29PM +0100, Giuseppe Modugno wrote: > But I have some difficulties to find a good point where to call the > select(), considering that the init() function must return and the > registered handler is called only for SET/GET requests from the > network. > > Is it possible to create and launch (fork?) a new process (the > serial bridge) from the init() function of the dynamic loadable > module? I never used fork in the past, but I know the child process > will start again from main() function. What happens if I fork from a > shared object module? Does the snmpd main() function start again?
There is no clean way, unfortunately. In your position I would hack agent/snmpd.c, and put my file descriptor in the select loop somewhat like the SMUX is handled. /Niels -- Niels Baggesen - @home - Ã…rhus - Denmark - [email protected] The purpose of computing is insight, not numbers --- R W Hamming ------------------------------------------------------------------------------ Free Software Download: Index, Search & Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev _______________________________________________ Net-snmp-coders mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/net-snmp-coders
