Re: [PATCH 2/3] Allow escape by ctrl-c broken by --no-error change

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 20 Oct 2012 18:03:51 +0200 Gilles Espinasse <g.esp@xxxxxxx> wrote:

> Signed-off-by: Gilles Espinasse <g.esp@xxxxxxx>
> ---
>  test |    7 ++++++-
>  1 files changed, 6 insertions(+), 1 deletions(-)
> 
> diff --git a/test b/test
> index 2bb482c..8339d06 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

Applied,
thanks.
NeilBrown

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux