erl - Erlang VM -s Argument is causing my program to fail -


i have read thread here: erlang vm -s argument misbehaving , have been troubleshooting no avail.

when run erlang vm without -s flag, function works:

bridge_sup:start_link().     bridge supervisor initializing    [warning] clientid null!    [warning] clientid null!    success    success 

however, if have -s flag set, when function goes on call function emqttc:start_link(...) never returns:

bridge supervisor initializing    [warning] clientid null!    [warning] clientid null! 

i can verify not print problem because program connecting receives no signal.

what possibly causing in erlang vm? have tried using eval same effect. here ./run code:

erl -pa ebin -pa deps/*/ebin

thank in advance!

could startup order problem. specifying command run using -s (or -run or -eval) means starts quickly, while parts of system may still starting in background. try adding sleep @ start of function , see if changes anything. in case, try figure out depends on order.


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -