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:
parent
b414d52066
commit
8acdd2e7ed
1 changed files with 11 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue