Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed manyclients

  • Loading branch information...
commit 400bcd27a0c34d07e2f66cdef429e04191033137 1 parent 6e861b1
@specialunderwear authored
Showing with 3 additions and 5 deletions.
  1. +3 −5 manyclients.sh
View
8 manyclients.sh
@@ -40,14 +40,12 @@ for (( i = 0; i < $1 ; i++ ))
do
if [ $VERBOSE != "0" ]; then
./websocketclient $2 $3 &
- PIDLIST="$PIDLIST $!"
- sleep $SLEEP
else
./websocketclient $2 $3 > /dev/null &
- PIDLIST="$PIDLIST $!"
- trap "kill $PIDLIST" SIGINT SIGTERM
- sleep $SLEEP
fi
+ PIDLIST="$PIDLIST $!"
+ trap "kill $PIDLIST" SIGINT SIGTERM
+ sleep $SLEEP
done
echo -en "\033[1;31mDone spawning processes in $(($(date +%s)-T)) seconds\033[0m \n"
echo "Waiting for completion now ..."
Please sign in to comment.
Something went wrong with that request. Please try again.