use kill 0 to kill all children
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
32e7ac3e78
commit
b1f10f2936
1 changed files with 1 additions and 6 deletions
|
@ -30,12 +30,7 @@ trap killandclean EXIT
|
||||||
|
|
||||||
killandclean()
|
killandclean()
|
||||||
{
|
{
|
||||||
# i may have been altered outside, just use the current offset
|
kill 0
|
||||||
while [ "$i" -gt 0 ]; do
|
|
||||||
eval pid=\$pid_$i
|
|
||||||
kill "$pid"
|
|
||||||
i=$((i-1))
|
|
||||||
done
|
|
||||||
|
|
||||||
# Ensure tmp stuff is being removed
|
# Ensure tmp stuff is being removed
|
||||||
__cdist_tmp_removal
|
__cdist_tmp_removal
|
||||||
|
|
Loading…
Reference in a new issue