History

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.

Kees Cook committed 10 years ago

Commit 2552a391 parent 65a9f311 file · +1 −1Browse files

Showing the changes to scripts (1 of 1 file). Show all

Unified · Split

scripts/coccicheck+1−1
@@ -98,7 +98,7 @@ run_cmd() { · 97 unmodified lines
98}98}
99 99
100kill_running() {100kill_running() {
101 for i in $(seq $(( NPROC - 1 )) ); do101 for i in $(seq 0 $(( NPROC - 1 )) ); do
102 if [ $VERBOSE -eq 2 ] ; then102 if [ $VERBOSE -eq 2 ] ; then
103 echo "Killing ${SPATCH_PID[$i]}"103 echo "Killing ${SPATCH_PID[$i]}"
104 fi104 fi