1
0
Fork 0
mirror of https://github.com/warmcat/libwebsockets.git synced 2025-03-09 00:00:04 +01:00

autobahn wait for all fork completion

Signed-off-by: Andy Green <andy.green@linaro.org>
This commit is contained in:
Andy Green 2016-02-15 14:44:18 +08:00
parent b414d52066
commit 8acdd2e7ed

View file

@ -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