[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[lvm-devel] [PATCH 20/23] exit if lvmchache_init fails



Signed-off-by: Zdenek Kabelac <zkabelac redhat com>
---
 tools/polldaemon.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/tools/polldaemon.c b/tools/polldaemon.c
index 50579ba..bcc649f 100644
--- a/tools/polldaemon.c
+++ b/tools/polldaemon.c
@@ -64,7 +64,8 @@ static int _become_daemon(struct cmd_context *cmd)
 	strncpy(*cmd->argv, "(lvm2)", strlen(*cmd->argv));
 
 	reset_locking();
-	lvmcache_init();
+	if (!lvmcache_init())
+		_exit(ECMD_FAILED);
 	dev_close_all();
 
 	return 1;
-- 
1.7.3.4


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]