Skip to content
This repository has been archived by the owner on Apr 13, 2022. It is now read-only.

Possible infinite loop in check_constellation_isStarted() #214

Open
jesus-alastria opened this issue May 29, 2018 · 1 comment
Open

Possible infinite loop in check_constellation_isStarted() #214

jesus-alastria opened this issue May 29, 2018 · 1 comment

Comments

@jesus-alastria
Copy link
Contributor

check_constellation_isStarted(){
set +e
RETVAL=""
while [ "$RETVAL" == "" ]
do
RETVAL="$(ss -nutlp | grep $CONSTELLATION_PORT)"
[ "$RETVAL" != "" ] && echo "[*] constellation node at $CONSTELLATION_PORT is now up."
[ "$RETVAL" == "" ] && echo "[*] constellation node at $CONSTELLATION_PORT is still starting. Awaiting 5 seconds." && sleep 5
done
echo "[*] resuming start procedure"
set -e
}

If Constellation never starts, there seems to be an infinite loop and the script does not finish or reports an error to the caller, so it is not usable from other programs (like the Monitor).

@marcosio
Copy link
Contributor

marcosio commented Nov 6, 2018

#217 #220

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants