From 8acdd2e7ed29f0940464d0c2863c859098fefb5e Mon Sep 17 00:00:00 2001 From: Andy Green Date: Mon, 15 Feb 2016 14:44:18 +0800 Subject: [PATCH] autobahn wait for all fork completion Signed-off-by: Andy Green --- autobahn-test.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/autobahn-test.sh b/autobahn-test.sh index 553ab1979..83a22dd12 100755 --- a/autobahn-test.sh +++ b/autobahn-test.sh @@ -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