From 74a81a4577ac3934952b3c731f699ef9a789592e Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Sat, 2 May 2015 21:13:15 +0200 Subject: [PATCH] lvm2app: call fin_locking in lvm_quit lvm_quit() function should also close locking. Fixes unclosed socket connecting clvmd. --- WHATS_NEW | 1 + liblvm/lvm_base.c | 1 + 2 files changed, 2 insertions(+) diff --git a/WHATS_NEW b/WHATS_NEW index a21d2b2b1..5956b746c 100644 --- a/WHATS_NEW +++ b/WHATS_NEW @@ -1,5 +1,6 @@ Version 2.02.120 - =============================== + lvm2app closes locking on lvm_quit(). Configure detects /run or /var/run. Add missing newline in clvmd --help output. diff --git a/liblvm/lvm_base.c b/liblvm/lvm_base.c index 31fc0bbf6..c1954d12f 100644 --- a/liblvm/lvm_base.c +++ b/liblvm/lvm_base.c @@ -96,6 +96,7 @@ lvm_t lvm_init(const char *system_dir) void lvm_quit(lvm_t libh) { struct saved_env e = store_user_env((struct cmd_context *)libh); + fin_locking(); destroy_toolcontext((struct cmd_context *)libh); udev_fin_library_context(); restore_user_env(&e);