mirror of
git://sourceware.org/git/lvm2.git
synced 2024-10-28 03:27:58 +03:00
clvmd: move destroy_lvm into lvm thread
Since lvm was initialized in lvm thread call destroy there as well.
This commit is contained in:
parent
8431d47b3b
commit
fc39ad677b
@ -625,7 +625,6 @@ int main(int argc, char *argv[])
|
||||
log_sys_error("pthread_join", "");
|
||||
|
||||
close_local_sock(local_sock);
|
||||
destroy_lvm();
|
||||
|
||||
while ((delfd = local_client_head.next)) {
|
||||
local_client_head.next = delfd->next;
|
||||
@ -2102,6 +2101,8 @@ static void *lvm_thread_fn(void *arg)
|
||||
|
||||
pthread_mutex_unlock(&lvm_thread_mutex);
|
||||
|
||||
destroy_lvm();
|
||||
|
||||
pthread_exit(NULL);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user