Re: [snmp PATCH 2/2] Stop event thread on server stop

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 30.05.2012 15:29, Martin Kletzander wrote:
> When C-c is sent to the process, the main thread (server) receives it
> and sets keep_running to 0, but the second thread is still
> running. Also, the second thread is not cleaned up after
> pthread_join() or pthread_destroy().
> This patch adds the cleanup function before all exit points of the
> program and fixes the cleansing of the second thread.
> ---

Okay, I see your point.
>  src/libvirtMib_subagent.c |    4 +++-
>  src/libvirtSnmp.c         |   20 +++++++++++++++++++-

However, libvirtMib_subagent.c is generated file (not compile time, but
MIB change time). One day I'll rewrite this. But till then:

ACK to this.

Michal

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]