Re: versionRestartAgent restarts the agent only once.
"Loic Domaigne" <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Hello everybody, > > As we're currently concentrating on getting a new major release (5.4) > > out of the door, please file a bug on http://www.net-snmp.org/bugs so > > the issue won't get lost. > > Thanks for your reply. I have filled a new bug, it's request Id 1600432. Good news! I found out where the problem is, and I have a remedy. The signal handler restart_doit() located in agent/mibgroup/util_funcs.c may run with SIGALARM blocked. Since the signal mask is preserved accross execv(), we must make sure that SIGALARM is unblocked prior of execv'ing. Otherwise SIGALARM will be ignored in the next incarnation of snmpd, because the signal is blocked. And thus, the restart won't work anymore. I shall post the corresponding patch on SourceForge. It applies to net-snmp version 5.3.1, but this may also apply to the upcoming 5.4. Cheers, Loic. -- Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen! Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Net-snmp-users mailing list [email protected] Please see the following page to unsubscribe or change other options: https://lists.sourceforge.net/lists/listinfo/net-snmp-users