[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [libvirt] [snmp PATCH 2/2] Stop event thread on server stop
- From: Michal Privoznik <mprivozn redhat com>
- To: Martin Kletzander <mkletzan redhat com>
- Cc: libvir-list redhat com
- Subject: Re: [libvirt] [snmp PATCH 2/2] Stop event thread on server stop
- Date: Wed, 30 May 2012 16:53:33 +0200
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
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]