X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fvirt.c;h=caaf077ea0026b6ff24a8d0ef6da82fab1b28e85;hp=37853852108448bd3e9c934ad353c627391573de;hb=14a7435a6f444613a05f6d1ae2625dfdd4b6d64f;hpb=d486225f89ea52d8ed2b4242eba2ad94c409f837 diff --git a/src/virt.c b/src/virt.c index 37853852..caaf077e 100644 --- a/src/virt.c +++ b/src/virt.c @@ -1898,7 +1898,9 @@ static int virt_notif_thread_init(virt_notif_thread_t *thread_data) { * domain_event_cb_id to '-1' */ thread_data->domain_event_cb_id = -1; + pthread_mutex_lock(&thread_data->active_mutex); thread_data->is_active = 0; + pthread_mutex_unlock(&thread_data->active_mutex); return 0; }