Skip to content

Commit

Permalink
autobahn wait for all fork completion
Browse files Browse the repository at this point in the history
Signed-off-by: Andy Green <[email protected]>
  • Loading branch information
Andy Green committed Feb 15, 2016
1 parent b414d52 commit 8acdd2e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions autobahn-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,15 @@ for i in '1.1.1' '1.1.2' '1.1.3' '1.1.4' '1.1.5' '1.1.6' '1.1.7' '1.1.8' '1.2.1'
N=$(( $N + 1 ))
done

echo "waiting for forks to complete..."

while [ 1 ] ; do
n=`ps fax | grep libwebsocket | grep -v grep | wc -l`
echo "$n forks running..."
if [ $n -eq 0 ] ; then
echo "Completed"
exit 0
fi
sleep 1s
done

0 comments on commit 8acdd2e

Please sign in to comment.