summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlasdair G Kergon <agk@redhat.com>2014-04-29 08:16:28 +0100
committerAlasdair G Kergon <agk@redhat.com>2014-04-29 08:16:28 +0100
commitb1f765d72aa56dab547a819447371b5315e78455 (patch)
treed451f716cbeb82103be4b38dc81f75bc507ec012
parent26989e0cd7fab4768f46803cd25bfc7499ab488e (diff)
downloadlvm2-b1f765d72aa56dab547a819447371b5315e78455.tar.gz
pvremove: Catch CTRL-c during prompts.
-rw-r--r--WHATS_NEW1
-rw-r--r--tools/pvremove.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/WHATS_NEW b/WHATS_NEW
index fad66bfd0..bb5b4c30f 100644
--- a/WHATS_NEW
+++ b/WHATS_NEW
@@ -1,5 +1,6 @@
Version 2.02.107 -
==================================
+ Catch CTRL-c during pvremove prompts.
Show correct availability status for snapshot origin in lvscan.
Move segment thin pool/volume info into segment display 'lvdisplay --maps'.
Display thin pool usage even when just thin volume is available.
diff --git a/tools/pvremove.c b/tools/pvremove.c
index 7048b972f..dfd600741 100644
--- a/tools/pvremove.c
+++ b/tools/pvremove.c
@@ -37,6 +37,8 @@ int pvremove(struct cmd_context *cmd, int argc, char **argv)
stack;
ret = ECMD_FAILED;
}
+ if (sigint_caught())
+ return_ECMD_FAILED;
}
return ret;