From: Pavel Rochnyack Date: Mon, 13 May 2019 07:31:39 +0000 (+0700) Subject: virt plugin: Check for virt_notif_thread_init() success X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=379865c9665752e76da405a3e68d5d4b0852bb0d;p=collectd.git virt plugin: Check for virt_notif_thread_init() success --- diff --git a/src/virt.c b/src/virt.c index 62e6089c..cd82dcad 100644 --- a/src/virt.c +++ b/src/virt.c @@ -2386,7 +2386,8 @@ static int lv_init(void) { return -1; if (!persistent_notification) - virt_notif_thread_init(¬if_thread); + if (virt_notif_thread_init(¬if_thread) != 0) + return -1; lv_connect();