Skip to content
Snippets Groups Projects
Commit 2704037a authored by Rohit Gupta's avatar Rohit Gupta
Browse files

added minor options to ctr-c handler in build script

parent 5ca76645
No related branches found
No related tags found
1 merge request!6Enhancement 57 uhd interfacing
...@@ -346,7 +346,11 @@ do ...@@ -346,7 +346,11 @@ do
arraycounter=`expr $arraycounter - 1` arraycounter=`expr $arraycounter - 1`
## We want to kill child process id first and then parent id's ## We want to kill child process id first and then parent id's
while [ $arraycounter -ne 0 ] 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 $SUDO kill -9 "${procid[$arraycounter]}" >/dev/null
arraycounter=`expr $arraycounter - 1` arraycounter=`expr $arraycounter - 1`
done done
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment