Allow escape by ctrl-c broken by --no-error change

Signed-off-by: Gilles Espinasse <g.esp@free.fr>
Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
Gilles Espinasse 2012-10-20 18:03:51 +02:00 committed by NeilBrown
parent dae45415a9
commit 4d5995c49f
1 changed files with 6 additions and 1 deletions

7
test
View File

@ -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