diff options
author | Siri Hansen <[email protected]> | 2017-03-02 12:36:37 +0100 |
---|---|---|
committer | Siri Hansen <[email protected]> | 2017-03-02 12:36:37 +0100 |
commit | 0255a4be4cdf2dbb4f735e13e3b28751be25c138 (patch) | |
tree | fbfe8a3511160f76d528c712eb0cf63044eb36ee /lib/stdlib | |
parent | bf737f7a5f335ebbbd6f9c2062ae78ca644572f9 (diff) | |
parent | 7d457490f786faef4ab02c300a1e69c21a6aeb21 (diff) | |
download | otp-0255a4be4cdf2dbb4f735e13e3b28751be25c138.tar.gz otp-0255a4be4cdf2dbb4f735e13e3b28751be25c138.tar.bz2 otp-0255a4be4cdf2dbb4f735e13e3b28751be25c138.zip |
Merge branch 'siri/sys/get_modules/ERL-367/OTP-14248' into maint
* siri/sys/get_modules/ERL-367/OTP-14248:
Correct documentation of get_modules message
Diffstat (limited to 'lib/stdlib')
-rw-r--r-- | lib/stdlib/doc/src/sys.xml | 4 | ||||
-rw-r--r-- | lib/stdlib/src/gen_event.erl | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/stdlib/doc/src/sys.xml b/lib/stdlib/doc/src/sys.xml index 9091a46df9..45171f814d 100644 --- a/lib/stdlib/doc/src/sys.xml +++ b/lib/stdlib/doc/src/sys.xml @@ -83,8 +83,8 @@ <p>If the modules used to implement the process change dynamically during runtime, the process must understand one more message. An example is the <seealso marker="gen_event"><c>gen_event</c></seealso> - processes. The message is <c>{get_modules, From}</c>. - The reply to this message is <c>From ! {modules, Modules}</c>, where + processes. The message is <c>{_Label, {From, Ref}, get_modules}</c>. + The reply to this message is <c>From ! {Ref, Modules}</c>, where <c>Modules</c> is a list of the currently active modules in the process.</p> <p>This message is used by the release handler to find which diff --git a/lib/stdlib/src/gen_event.erl b/lib/stdlib/src/gen_event.erl index ccacf658e9..e55cdddb9a 100644 --- a/lib/stdlib/src/gen_event.erl +++ b/lib/stdlib/src/gen_event.erl @@ -742,7 +742,7 @@ stop_handlers([], _) -> []. %% Message from the release_handler. -%% The list of modules got to be a set ! +%% The list of modules got to be a set, i.e. no duplicate elements! get_modules(MSL) -> Mods = [Handler#handler.module || Handler <- MSL], ordsets:to_list(ordsets:from_list(Mods)). |