提交 2552a39f 编写于 作者: K Kees Cook 提交者: Michal Marek

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: NKees Cook <keescook@chromium.org>
Acked-by: NNicolas Palix <nicolas.palix@imag.fr>
Acked-by: NJulia Lawall <julia.lawall@lip6.fr>
Signed-off-by: NMichal Marek <mmarek@suse.com>
上级 65a9f31c
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册