[erlang-bugs] release handler dynamic modules registered names

Paul Mineiro paul-trapexit@REDACTED
Thu Mar 27 17:31:50 CET 2008


we ran into a problem in r11b-5 where the release_handler was using the
supervisor's child id as a registered name for children whose module spec
is 'dynamic'.

attached is a patch which fixes the problem.

-- p
-------------- next part --------------
--- /usr/lib/erlang/lib/sasl-2.1.5.1/src/release_handler_1.erl	2007-08-05 08:48:53.000000000 -0700
+++ release_handler_1.erl	2008-03-25 15:41:07.000000000 -0700
@@ -505,7 +505,7 @@
 		application:which_applications())).
 
 get_procs([{Name, Pid, worker, dynamic} | T], Sup) when is_pid(Pid) ->
-    Mods = get_dynamic_mods(Name),
+    Mods = get_dynamic_mods(Pid),
     [{Sup, Name, Pid, Mods} | get_procs(T, Sup)];
 get_procs([{Name, Pid, worker, Mods} | T], Sup) when is_pid(Pid), is_list(Mods) ->
     [{Sup, Name, Pid, Mods} | get_procs(T, Sup)];


More information about the erlang-bugs mailing list