From d7b4a4ce01306542eff4c8fdc18e5a0c67a37eed Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Tue, 26 Sep 2023 17:55:53 +0200 Subject: [PATCH] debug: stacktracing failure --- tools/polldaemon.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/polldaemon.c b/tools/polldaemon.c index a220d63a2..53c520fae 100644 --- a/tools/polldaemon.c +++ b/tools/polldaemon.c @@ -141,7 +141,8 @@ static int _sleep_and_rescan_devices(struct cmd_context *cmd, struct daemon_parm _nanosleep(parms->interval, 0); if (sigint_caught()) return_0; - lvmcache_label_scan(cmd); + if (!lvmcache_label_scan(cmd)) + stack; } return 1; @@ -159,7 +160,8 @@ int wait_for_single_lv(struct cmd_context *cmd, struct poll_operation_id *id, unsigned wait_before_testing = parms->wait_before_testing; if (!wait_before_testing) - lvmcache_label_scan(cmd); + if (!lvmcache_label_scan(cmd)) + stack; /* Poll for completion */ while (!finished) {