From b1f10f293605ebfe24e12e612b1b60ae849793da Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Tue, 10 May 2011 16:58:59 +0200 Subject: [PATCH] use kill 0 to kill all children Signed-off-by: Nico Schottelius --- bin/cdist-mass-deploy | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/bin/cdist-mass-deploy b/bin/cdist-mass-deploy index ab6c8f1b..99638490 100755 --- a/bin/cdist-mass-deploy +++ b/bin/cdist-mass-deploy @@ -30,12 +30,7 @@ trap killandclean EXIT killandclean() { - # i may have been altered outside, just use the current offset - while [ "$i" -gt 0 ]; do - eval pid=\$pid_$i - kill "$pid" - i=$((i-1)) - done + kill 0 # Ensure tmp stuff is being removed __cdist_tmp_removal