[lvm-devel] [PATCH 01/23] Return ECMD_FAILED for break

Zdenek Kabelac zkabelac at redhat.com
Wed Apr 28 12:27:20 UTC 2010


Return ECMD_FAILED when sigint has been caught.

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

diff --git a/tools/toollib.c b/tools/toollib.c
index 393c529..eac63e0 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;
-- 
1.7.0.1




More information about the lvm-devel mailing list