By default, "seq" counts from 1, but processes were starting counting from 0, so when interrupted, coccicheck would leave the 0th process running.
Unified · Split
| @@ -98,7 +98,7 @@ run_cmd() { · 97 unmodified lines | ||
| 98 | 98 | } |
| 99 | 99 | |
| 100 | 100 | kill_running() { |
| 101 | − for i in $(seq $(( NPROC - 1 )) ); do | |
| 101 | + for i in $(seq 0 $(( NPROC - 1 )) ); do | |
| 102 | 102 | if [ $VERBOSE -eq 2 ] ; then |
| 103 | 103 | echo "Killing ${SPATCH_PID[$i]}" |
| 104 | 104 | fi |