From d633ed1077807ab784fd5b558ea46f92744a4f63 Mon Sep 17 00:00:00 2001 From: Gavin Hu Date: Wed, 1 Aug 2018 13:22:57 +0800 Subject: [PATCH] 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 Reviewed-by: Honnappa Nagarahalli Acked-by: John McNamara Tested-by: Vipin Varghese --- devtools/checkpatches.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devtools/checkpatches.sh b/devtools/checkpatches.sh index 2509269df0..ba795ad1dc 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 -- 2.20.1