aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel/src
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2012-03-19 16:26:28 +0100
committerBjörn-Egil Dahlberg <[email protected]>2012-03-19 16:26:28 +0100
commit6dc3f61a6e2a635de31c2016e7bd8e6ff16533af (patch)
tree1e733f82eaff725716b4be9260b00a7c7e10f329 /lib/kernel/src
parentd4667d383964c1550e0a91d64b674e84f6d07e3b (diff)
parentbd8e724a56aff8936fe61bfdb72e9548637ef561 (diff)
downloadotp-6dc3f61a6e2a635de31c2016e7bd8e6ff16533af.tar.gz
otp-6dc3f61a6e2a635de31c2016e7bd8e6ff16533af.tar.bz2
otp-6dc3f61a6e2a635de31c2016e7bd8e6ff16533af.zip
Merge branch 'master' of super:otp
Diffstat (limited to 'lib/kernel/src')
-rw-r--r--lib/kernel/src/global.erl10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/kernel/src/global.erl b/lib/kernel/src/global.erl
index fa97614eca..7da33859bf 100644
--- a/lib/kernel/src/global.erl
+++ b/lib/kernel/src/global.erl
@@ -280,13 +280,13 @@ unregister_name(Name) ->
gen_server:call(global_name_server, {registrar, Fun}, infinity)
end.
--spec re_register_name(Name, Pid) -> _ when
+-spec re_register_name(Name, Pid) -> 'yes' when
Name :: term(),
Pid :: pid().
re_register_name(Name, Pid) when is_pid(Pid) ->
re_register_name(Name, Pid, fun random_exit_name/3).
--spec re_register_name(Name, Pid, Resolve) -> _ when
+-spec re_register_name(Name, Pid, Resolve) -> 'yes' when
Name :: term(),
Pid :: pid(),
Resolve :: method().
@@ -1965,7 +1965,7 @@ resolve_it(Method, Name, Pid1, Pid2) ->
minmax(P1,P2) ->
if node(P1) < node(P2) -> {P1, P2}; true -> {P2, P1} end.
--spec random_exit_name(Name, Pid1, Pid2) -> 'none' when
+-spec random_exit_name(Name, Pid1, Pid2) -> pid() when
Name :: term(),
Pid1 :: pid(),
Pid2 :: pid().
@@ -1976,7 +1976,7 @@ random_exit_name(Name, Pid, Pid2) ->
exit(Max, kill),
Min.
--spec random_notify_name(Name, Pid1, Pid2) -> 'none' when
+-spec random_notify_name(Name, Pid1, Pid2) -> pid() when
Name :: term(),
Pid1 :: pid(),
Pid2 :: pid().
@@ -2175,7 +2175,7 @@ get_own_nodes() ->
start_the_registrar() ->
spawn_link(fun() -> loop_the_registrar() end).
-
+
loop_the_registrar() ->
receive
{trans_all_known, Fun, From} ->