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
Post a Comment