summaryrefslogtreecommitdiff
path: root/devtools
diff options
context:
space:
mode:
authorGavin Hu <gavin.hu@arm.com>2018-08-01 13:22:57 +0800
committerThomas Monjalon <thomas@monjalon.net>2018-08-01 16:42:53 +0200
commitd633ed1077807ab784fd5b558ea46f92744a4f63 (patch)
tree84f66463debbfa682658970c357561eb1d40260d /devtools
parentac7c491c3fecb835d637e867467dcf7cc8736828 (diff)
downloaddpdk-d633ed1077807ab784fd5b558ea46f92744a4f63.zip
dpdk-d633ed1077807ab784fd5b558ea46f92744a4f63.tar.gz
dpdk-d633ed1077807ab784fd5b558ea46f92744a4f63.tar.xz
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>
Diffstat (limited to 'devtools')
-rwxr-xr-xdevtools/checkpatches.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/devtools/checkpatches.sh b/devtools/checkpatches.sh
index 2509269..ba795ad 100755
--- a/devtools/checkpatches.sh
+++ b/devtools/checkpatches.sh
@@ -29,7 +29,7 @@ clean_tmp_files() {
fi
}
-trap "clean_tmp_files" SIGINT
+trap "clean_tmp_files" INT
print_usage () {
cat <<- END_OF_HELP