summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2016-05-16 15:55:58 +0300
committerMichal Marek <mmarek@suse.com>2016-05-19 10:56:59 +0300
commit2552a39facb6609007a02eeda5d5edee4fcaca30 (patch)
tree4c75e6b7bc648a7d8b8f3ff058362625960446b6 /scripts
parent65a9f31c5042e5bb50d30ed8ae374044be561054 (diff)
downloadlinux-2552a39facb6609007a02eeda5d5edee4fcaca30.tar.xz
coccicheck: Fix missing 0 index in kill loop
By default, "seq" counts from 1, but processes were starting counting from 0, so when interrupted, coccicheck would leave the 0th process running. Signed-off-by: Kees Cook <keescook@chromium.org> Acked-by: Nicolas Palix <nicolas.palix@imag.fr> Acked-by: Julia Lawall <julia.lawall@lip6.fr> Signed-off-by: Michal Marek <mmarek@suse.com>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/coccicheck2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/coccicheck b/scripts/coccicheck
index b2d758188f2f..dd85a455b2ba 100755
--- a/scripts/coccicheck
+++ b/scripts/coccicheck
@@ -98,7 +98,7 @@ run_cmd() {
}
kill_running() {
- for i in $(seq $(( NPROC - 1 )) ); do
+ for i in $(seq 0 $(( NPROC - 1 )) ); do
if [ $VERBOSE -eq 2 ] ; then
echo "Killing ${SPATCH_PID[$i]}"
fi