Bad call = gen_server shutdown?
blaguehubert
blaguehubert@REDACTED
Fri Jan 14 16:59:30 CET 2005
I wrote a gen_server module "repartiteur" with 2 functions :
propose_link/1 and get_proposed_links/0.
It seems that if I call get_proposed_links with an argument (by
mistake), it shutdowns the server...
Is this normal?
1> make:all([load]).
Recompile: chercheur.erl
Recompile: superviseur.erl
Recompile: repartiteur.erl
Recompile: search_engine.erl
up_to_date
2> repartiteur:start_link().
{ok,<0.52.0>}
3> repartiteur:propose_link("truc").
ok
4> repartiteur:get_proposed_links().
["truc"]
5> repartiteur:get_proposed_links().
["truc"]
6> repartiteur:get_proposed_links(1).
** exited: {undef,[{repartiteur,get_proposed_links,[1]},
{erl_eval,do_apply,5},
{shell,exprs,6},
{shell,eval_loop,3}]} **
7> repartiteur:get_proposed_links().
** exited: {noproc,{gen_server,call,
[{global,repartiteur},{get_proposed_links}]}} **
8> repartiteur:start_link().
{ok,<0.61.0>}
9> repartiteur:get_proposed_links().
[]
10>
More information about the erlang-questions
mailing list