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