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
9898 }
9999
100100 kill_running() {
101− for i in $(seq $(( NPROC - 1 )) ); do
101+ for i in $(seq 0 $(( NPROC - 1 )) ); do
102102 if [ $VERBOSE -eq 2 ] ; then
103103 echo "Killing ${SPATCH_PID[$i]}"
104104 fi