SV: Trouble with gen_server
Matthias Lang
matthias@REDACTED
Tue Mar 28 16:20:35 CEST 2006
Mark Lee writes:
> Ok, as simple as I can get.
>
> 1> test:start_link().
> {ok,<0.33.0>}
> 2> test:test().
> ** exited: {timeout,{gen_server,call,[test,test]}} **
> 3> test:test().
> ** exited: {noproc,{gen_server,call,[test,test]}} **
Your first line starts the server AND LINKS IT TO THE SHELL.
So, when your call fails, your shell process dies. And thus your gen
server must die too.
If you don't want that to happen, don't link the gen_server to the
shell.
Matthias
More information about the erlang-questions
mailing list