aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel
diff options
context:
space:
mode:
authorRicardo Catalinas Jiménez <[email protected]>2012-03-01 20:05:18 +0100
committerRicardo Catalinas Jiménez <[email protected]>2012-03-01 20:05:18 +0100
commit7ab34f2413c1a969f07e9eb1455d34fc1834f597 (patch)
treec6d95df1caa69b2ead31bd017171f988b09f3c07 /lib/kernel
parent748a0ebb8c1e08fd73fbb8548e4e03bff2579dd2 (diff)
downloadotp-7ab34f2413c1a969f07e9eb1455d34fc1834f597.tar.gz
otp-7ab34f2413c1a969f07e9eb1455d34fc1834f597.tar.bz2
otp-7ab34f2413c1a969f07e9eb1455d34fc1834f597.zip
Improve global:re_register_name/2,3 spec
Both functions always return `yes'.
Diffstat (limited to 'lib/kernel')
-rw-r--r--lib/kernel/src/global.erl6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/kernel/src/global.erl b/lib/kernel/src/global.erl
index 6bd8d0ddb2..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().
@@ -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} ->