diff options
author | Pouriya <[email protected]> | 2018-04-26 13:49:59 +0000 |
---|---|---|
committer | Siri Hansen <[email protected]> | 2018-04-26 15:49:59 +0200 |
commit | eefcc985530acbd5cc4c97b6e4f537492fd61622 (patch) | |
tree | cf16fd914ab7f2ef6de00c2b8e6f0a7d5d4593ce /lib/stdlib/doc/src/sys.xml | |
parent | f24a15640beef8acd832e4a3eaf20bbd3c16e38d (diff) | |
download | otp-eefcc985530acbd5cc4c97b6e4f537492fd61622.tar.gz otp-eefcc985530acbd5cc4c97b6e4f537492fd61622.tar.bz2 otp-eefcc985530acbd5cc4c97b6e4f537492fd61622.zip |
[stdlib/sys]: install one debug function more times (#1781)
Allow installing multiple instances of sys debug function
This commit solves a bug which allowed installing {Fun,State} as sys debug function even if Fun was already installed. This happened in the case when the current State of the debug fun was undefined.
Also, the new format {Id,Fun,State} of debug functions can be installed, allowing multiple instances of the same fun.
Diffstat (limited to 'lib/stdlib/doc/src/sys.xml')
-rw-r--r-- | lib/stdlib/doc/src/sys.xml | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/stdlib/doc/src/sys.xml b/lib/stdlib/doc/src/sys.xml index 8930087555..59e5bb6cb5 100644 --- a/lib/stdlib/doc/src/sys.xml +++ b/lib/stdlib/doc/src/sys.xml @@ -276,7 +276,9 @@ <p><c><anno>Func</anno></c> is called whenever a system event is generated. This function is to return <c>done</c>, or a new <c>Func</c> state. In the first case, the function is removed. It is - also removed if the function fails.</p> + also removed if the function fails. If one debug function should be + installed more times, a unique <c><anno>FuncId</anno></c> must be + specified for each installation.</p> </desc> </func> @@ -330,8 +332,8 @@ <fsummary>Remove a debug function from the process.</fsummary> <desc> <p>Removes an installed debug function from the - process. <c><anno>Func</anno></c> must be the same as previously - installed.</p> + process. <c><anno>Func</anno></c> or <c><anno>FuncId</anno></c> must be + the same as previously installed.</p> </desc> </func> |