aboutsummaryrefslogtreecommitdiffstats
path: root/lib/kernel
diff options
context:
space:
mode:
authorRicardo Catalinas Jiménez <[email protected]>2012-03-01 14:11:49 +0100
committerRicardo Catalinas Jiménez <[email protected]>2012-03-01 14:11:49 +0100
commit748a0ebb8c1e08fd73fbb8548e4e03bff2579dd2 (patch)
treec6538989ed1cb1e4eecb9bd57733d1d35d34c7ba /lib/kernel
parenteda0a2d866060b18af6f06abbc9ea9e920de43b7 (diff)
downloadotp-748a0ebb8c1e08fd73fbb8548e4e03bff2579dd2.tar.gz
otp-748a0ebb8c1e08fd73fbb8548e4e03bff2579dd2.tar.bz2
otp-748a0ebb8c1e08fd73fbb8548e4e03bff2579dd2.zip
Fix global:{random_exit_name,random_notify_name}/3 spec
Both functions return pid(), not 'none'. The one that always returns 'none' is notify_all_name/3.
Diffstat (limited to 'lib/kernel')
-rw-r--r--lib/kernel/src/global.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/kernel/src/global.erl b/lib/kernel/src/global.erl
index fa97614eca..6bd8d0ddb2 100644
--- a/lib/kernel/src/global.erl
+++ b/lib/kernel/src/global.erl
@@ -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().