Menu

#2587 net-snmp does not replicate all threads in the daemon process

solaris
closed
None
4
2015-01-26
2015-01-16
No

Net-snmp starts as a foreground process and is later daemonized through
netsnmp_daemonize(). As part of this function fork() is called which only
replicates the calling thread.

Due to fork() call, the threads from loadable modules like FMA do not get
replicated. And so the MIB in these modules cannot be accessed through
snmpwalk commands.

Need to use forkall() so that all the threads of the parent process get
replicated into the child process. This bug is for reference and
documentation of the issue.

1 Attachments

Discussion

  • Niels Baggesen

    Niels Baggesen - 2015-01-26
    • status: open --> closed
    • assigned_to: Niels Baggesen
     
  • Niels Baggesen

    Niels Baggesen - 2015-01-26

    Thanks for the patch! It has been applied for 5.6 and newer branches.

     

Log in to post a comment.