summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Wragg <dpw@lshift.net>2010-04-30 13:51:58 +0100
committerDavid Wragg <dpw@lshift.net>2010-04-30 13:51:58 +0100
commita52a3b1f3eab0c9c558966cfa5704a3365441cb2 (patch)
tree4a8f433712890f2a6685abd202c885d68a169c8e /src
parenta4b80f1c9576b23837aa7c47b5df35170eee6ab8 (diff)
downloadrabbitmq-server-git-a52a3b1f3eab0c9c558966cfa5704a3365441cb2.tar.gz
Revert incorrect R12 cleanup
The corresponding change actually went into the R13 gen_server. Update the comment accordingly.
Diffstat (limited to 'src')
-rw-r--r--src/gen_server2.erl4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gen_server2.erl b/src/gen_server2.erl
index d1f3a88ba4..5b899cdbc7 100644
--- a/src/gen_server2.erl
+++ b/src/gen_server2.erl
@@ -442,7 +442,9 @@ init_it(Starter, Parent, Name0, Mod, Args, Options) ->
name({local,Name}) -> Name;
name({global,Name}) -> Name;
-name(Pid) when is_pid(Pid) -> Pid.
+%% name(Pid) when is_pid(Pid) -> Pid;
+%% when R12 goes away, drop the line beneath and uncomment the line above
+name(Name) -> Name.
unregister_name({local,Name}) ->
_ = (catch unregister(Name));