added minor options to ctr-c handler in build script

This commit is contained in:
Rohit Gupta
2015-10-30 14:12:56 +01:00
parent 5ca76645ca
commit 2704037a65
+5 -1
View File
@@ -346,7 +346,11 @@ do
arraycounter=`expr $arraycounter - 1`
## We want to kill child process id first and then parent id's
while [ $arraycounter -ne 0 ]
do
do
echo "first we send ctrl-c to program"
$SUDO kill -INT "${procid[$arraycounter]}"
sleep 5
echo "Now we force kill if that didn't work"
$SUDO kill -9 "${procid[$arraycounter]}" >/dev/null
arraycounter=`expr $arraycounter - 1`
done