diff options
author | Hans Bolinder <[email protected]> | 2011-11-15 15:18:05 +0100 |
---|---|---|
committer | Hans Bolinder <[email protected]> | 2011-11-15 15:18:05 +0100 |
commit | 8d911d42d6718029daf92035f24b1389dfdd12e3 (patch) | |
tree | 09076c93d961a5428b688a2e48c896a5074ecf65 /lib/stdlib/src/gen_server.erl | |
parent | bf54919396bc4f9e7202be9f8055079fff69098b (diff) | |
parent | c5b73b36525237458cf4138564f17f94ef8635a6 (diff) | |
download | otp-8d911d42d6718029daf92035f24b1389dfdd12e3.tar.gz otp-8d911d42d6718029daf92035f24b1389dfdd12e3.tar.bz2 otp-8d911d42d6718029daf92035f24b1389dfdd12e3.zip |
Merge branch 'hb/stdlib/gen_call_improvement/OTP-9212'
* hb/stdlib/gen_call_improvement/OTP-9212:
Remove the undocumented function global:safe_whereis_name/1
Remove all use of global:safe_whereis_name/1
Fix a minor race in gen_fsm
Diffstat (limited to 'lib/stdlib/src/gen_server.erl')
-rw-r--r-- | lib/stdlib/src/gen_server.erl | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/stdlib/src/gen_server.erl b/lib/stdlib/src/gen_server.erl index dd0ef74f30..6f075bbe5a 100644 --- a/lib/stdlib/src/gen_server.erl +++ b/lib/stdlib/src/gen_server.erl @@ -1,7 +1,7 @@ %% %% %CopyrightBegin% %% -%% Copyright Ericsson AB 1996-2010. All Rights Reserved. +%% Copyright Ericsson AB 1996-2011. All Rights Reserved. %% %% The contents of this file are subject to the Erlang Public License, %% Version 1.1, (the "License"); you may not use this file except in @@ -820,7 +820,7 @@ get_proc_name({local, Name}) -> exit(process_not_registered) end; get_proc_name({global, Name}) -> - case global:safe_whereis_name(Name) of + case global:whereis_name(Name) of undefined -> exit(process_not_registered_globally); Pid when Pid =:= self() -> @@ -842,7 +842,7 @@ get_parent() -> name_to_pid(Name) -> case whereis(Name) of undefined -> - case global:safe_whereis_name(Name) of + case global:whereis_name(Name) of undefined -> exit(could_not_find_registerd_name); Pid -> |