start_link and death of parent

Fredrik Linder <>
Thu Jun 17 17:53:22 CEST 2004

Hello OTP Folks

I get this very strange behaviour from otp-r9c-0 built on redhat-8 or redhat-9 (not 100% sure which).

Is this a known problem in r9c-0, and if so is it corrected in r9c-1?

()265> whereis(d).
()266> l(d).
()267> P=spawn(fun()->io:format("result: ~w~n", [catch d:start_link()]) end).
result: {ok,<1308.2282.0>}
()268> erlang:is_process_alive(P).
()269> whereis(d).
()270> erlang:is_process_alive(whereis(d)).
()271> exit(whereis(d),kill).
()272> whereis(d).

Shouldn't <1308.2282.0> die when <1308.2281.0> dies.

The 'd' module is just the emacs skeleton for gen_server in of r9c-0 with -define(SERVER, ?MODULE).

-------------- next part --------------
A non-text attachment was scrubbed...
Name: d.erl
Type: application/octet-stream
Size: 4689 bytes
Desc: d.erl
URL: <>

More information about the erlang-questions mailing list