gen_mod: Support global module processes

This commit is contained in:
Holger Weiss 2018-04-04 18:25:19 +02:00
parent 094f586811
commit 54363f8476
1 changed files with 3 additions and 1 deletions

View File

@ -833,7 +833,9 @@ get_hosts(Opts, Prefix) ->
Hosts
end.
-spec get_module_proc(binary(), atom()) -> atom().
-spec get_module_proc(binary() | global, atom()) -> atom().
get_module_proc(global, Base) ->
get_module_proc(<<"global">>, Base);
get_module_proc(Host, Base) ->
binary_to_atom(
<<(erlang:atom_to_binary(Base, latin1))/binary, "_", Host/binary>>,