See snmp_alarm(3snmp) manual page for the
rationale. `NETSNMP_DS_LIB_ALARM_DONT_USE_SIG` is set by
`init_agent()`.
(void)what; (void)fd;
struct lldpd *cfg = arg;
snmp_timeout();
+ run_alarms();
levent_snmp_update(cfg);
}
break;
#ifdef USE_SNMP
if (cfg->g_snmp) {
- run_alarms();
+ /* We don't use delegated requests (request
+ whose answer is delayed). However, we keep
+ the call here in case we use it some
+ day. We don't call run_alarms() here. We do
+ it on timeout only. */
netsnmp_check_outstanding_agent_requests();
- /* run_alarms() may establish new connections and then
- synchronously modify the set of SNMP FD. We need to
- update them. */
levent_snmp_update(cfg);
}
#endif