From: Gilles Espinasse Date: Sat, 20 Oct 2012 16:03:51 +0000 (+0200) Subject: Allow escape by ctrl-c broken by --no-error change X-Git-Tag: mdadm-3.3-rc1~175 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d5995c49fb5068ace72ae62ab3fadc45c40ee3d;p=thirdparty%2Fmdadm.git Allow escape by ctrl-c broken by --no-error change Signed-off-by: Gilles Espinasse Signed-off-by: NeilBrown --- diff --git a/test b/test index 9340afeb..a21017d0 100755 --- a/test +++ b/test @@ -68,8 +68,13 @@ cleanup() { done } +ctrl-c() { + exitonerror=1 +} + do_setup() { - trap cleanup 0 1 2 3 15 + trap cleanup 0 1 3 15 + trap ctrl-c 2 devlist= for d in 0 1 2 3 4 5 6 7 8 9 10 11 12