17 Aug 22:33
OTP question
From: Alpár Jüttner <alpar <at> cs.elte.hu>
Subject: OTP question
Newsgroups: gmane.comp.lang.erlang.general
Date: 2008-08-17 20:35:55 GMT
Subject: OTP question
Newsgroups: gmane.comp.lang.erlang.general
Date: 2008-08-17 20:35:55 GMT
Hi,
I have a fairly basic problem, probably I did a silly mistake. When I
stop an application, it does not terminate the supervisor tree. Please
find an example in the attachment. It is a minimal application with one
supervisor and a server. When I start the application, the supervisor
and the server starts nicely:
$erl
Erlang (BEAM) emulator version 5.6.3 [source] [smp:2]
[async-threads:0] [hipe] [kernel-poll:false]
Eshell V5.6.3 (abort with ^G)
1> c(test_ser).
{ok,test_ser}
2> c(test_sup).
{ok,test_sup}
3> c(test_app).
{ok,test_app}
4> application:start(test_app).
TEST APP START.
TEST SUPERVISOR START LINK.
TEST SUPERVISOR INIT.
TEST SERVER START LINK.
TEST SERVER INIT.
ok
But when I stop it, test_app:stop/1 is executed, but
test_sup:terminate/1 and test_server:terminate/2 are not.
(Continue reading)
RSS Feed