In Fork mode the parent never calls snmp_init_library(), so pthread_once remains untriggered. The child called init_snmp() directly, then snmp_open_session() triggered pthread_once calling init_snmp() a second time. This double-initialization of libnetsnmp caused signal 11 in every child process. Let snmp_open_session() handle initialization via pthread_once, which correctly initializes exactly once and sets numeric OID format. |
||
|---|---|---|
| .. | ||
| snmp_helper.c | ||
| snmp_helper.h | ||