From e96f66d8817d89c51b5066ed0cd69fcda8620306 Mon Sep 17 00:00:00 2001
From: Richard Carlsson
Date: Wed, 9 Jan 2019 14:14:58 +0100
Subject: Document that current_function can be undefined
If a process is executing in native-compiled code, process_info(Pid,
current_function) may return the atom undefined instead of an MFA.
---
erts/doc/src/erlang.xml | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
(limited to 'erts/doc/src')
diff --git a/erts/doc/src/erlang.xml b/erts/doc/src/erlang.xml
index 8e014c3010..ab9aadcc54 100644
--- a/erts/doc/src/erlang.xml
+++ b/erts/doc/src/erlang.xml
@@ -5182,11 +5182,13 @@ RealSystem = system + MissedSystem
changed or removed without prior notice.
{current_function, {Module,
- Function, Arity}}
+ Function, Arity} | undefined}
-
Module, Function,
Arity is
- the current function call of the process.
+ the current function call of the process. The value
+ undefined can be returned if the process is
+ currently executing native compiled code.
{current_location, {Module,
Function, Arity,
--
cgit v1.2.3