devtools: fix checkpatch with dash
authorGavin Hu <gavin.hu@arm.com>
Wed, 1 Aug 2018 05:22:57 +0000 (13:22 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 1 Aug 2018 14:42:53 +0000 (16:42 +0200)
commitd633ed1077807ab784fd5b558ea46f92744a4f63
tree84f66463debbfa682658970c357561eb1d40260d
parentac7c491c3fecb835d637e867467dcf7cc8736828
devtools: fix checkpatch with dash

When running checkpatch.sh, it generates the following error
on some linux distributions(like Debian) with Dash as the
default shell interpreter.
trap: SIGINT: bad trap

The fix is to replace SIGINT with INT signal, it works for
both bash and dash.

Fixes: 4bec48184e ("devtools: add checks for ABI symbol addition")
Cc: stable@dpdk.org
Signed-off-by: Gavin Hu <gavin.hu@arm.com>
Reviewed-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
Acked-by: John McNamara <john.mcnamara@intel.com>
Tested-by: Vipin Varghese <vipin.varghese@intel.com>
devtools/checkpatches.sh