[lvm-devel] [PATCH 01/23] Return ECMD_FAILED for break Return ECMD_FAILED when sigint has been caught.
Zdenek Kabelac
zkabelac at redhat.com
Fri May 14 15:18:56 UTC 2010
Signed-off-by: Zdenek Kabelac <zkabelac at redhat.com>
---
tools/toollib.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/tools/toollib.c b/tools/toollib.c
index 735f3b0..39d86d8 100644
--- a/tools/toollib.c
+++ b/tools/toollib.c
@@ -330,7 +330,7 @@ int process_each_lv(struct cmd_context *cmd, int argc, char **argv,
if (ret > ret_max)
ret_max = ret;
if (sigint_caught())
- break;
+ return ECMD_FAILED;
}
return ret_max;
@@ -409,7 +409,7 @@ int process_each_segment_in_lv(struct cmd_context *cmd,
if (ret > ret_max)
ret_max = ret;
if (sigint_caught())
- break;
+ return ECMD_FAILED;
}
return ret_max;
--
1.7.0.1
More information about the lvm-devel
mailing list