From eefcc985530acbd5cc4c97b6e4f537492fd61622 Mon Sep 17 00:00:00 2001 From: Pouriya Date: Thu, 26 Apr 2018 13:49:59 +0000 Subject: [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. --- lib/stdlib/doc/src/sys.xml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'lib/stdlib/doc') 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 @@

Func is called whenever a system event is generated. This function is to return done, or a new Func state. In the first case, the function is removed. It is - also removed if the function fails.

+ also removed if the function fails. If one debug function should be + installed more times, a unique FuncId must be + specified for each installation.

@@ -330,8 +332,8 @@ Remove a debug function from the process.

Removes an installed debug function from the - process. Func must be the same as previously - installed.

+ process. Func or FuncId must be + the same as previously installed.

-- cgit v1.2.3