X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Fconky.c;h=4015f2464b850ecc8bfa82dac9d3ad7bbf4854ce;hb=f607145f13fab35193defb1c5fab308796a429ef;hp=20f2f67e588eb5c66cf70561bff59b145db9abac;hpb=792da5a7db6e0d09f66a768a1fb70a8a7b8f3d95;p=monky diff --git a/src/conky.c b/src/conky.c index 20f2f67..4015f24 100644 --- a/src/conky.c +++ b/src/conky.c @@ -5718,6 +5718,7 @@ void initialisation(int argc, char **argv) { "kvm_open")) == NULL) { CRIT_ERR(NULL, NULL, "cannot read kvm"); } + pthread_mutex_init(&kvm_proc_mutex, NULL); #endif while (1) { @@ -6001,6 +6002,7 @@ int main(int argc, char **argv) #if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) kvm_close(kd); + pthread_mutex_destroy(&kvm_proc_mutex); #endif return 0;