aboutsummaryrefslogtreecommitdiffstats
path: root/erts/preloaded/src/erlang.erl
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2018-07-09 18:23:35 +0200
committerSverker Eriksson <[email protected]>2018-07-09 18:36:41 +0200
commit6fdcb401a0de580fba38eec63a92b45ee73c8b64 (patch)
treed358f93839e04dcc831219b9723ed06d7e087e4f /erts/preloaded/src/erlang.erl
parenta409990bbe6bbe75be274161855e2f68a48100e6 (diff)
downloadotp-6fdcb401a0de580fba38eec63a92b45ee73c8b64.tar.gz
otp-6fdcb401a0de580fba38eec63a92b45ee73c8b64.tar.bz2
otp-6fdcb401a0de580fba38eec63a92b45ee73c8b64.zip
erts: Fix spec and docs for process_info 'monitored_by'
to include ports and NIF resources. Added new opaque type 'nif_resource'.
Diffstat (limited to 'erts/preloaded/src/erlang.erl')
-rw-r--r--erts/preloaded/src/erlang.erl8
1 files changed, 4 insertions, 4 deletions
diff --git a/erts/preloaded/src/erlang.erl b/erts/preloaded/src/erlang.erl
index 75f6901258..1ed6b6b284 100644
--- a/erts/preloaded/src/erlang.erl
+++ b/erts/preloaded/src/erlang.erl
@@ -86,15 +86,15 @@
| 'nano_seconds'.
-opaque prepared_code() :: reference().
-
-export_type([prepared_code/0]).
--opaque dist_handle() :: atom().
+-opaque nif_resource() :: reference().
+-export_type([nif_resource/0]).
+-opaque dist_handle() :: atom().
-export_type([dist_handle/0]).
-type iovec() :: [binary()].
-
-export_type([iovec/0]).
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
@@ -2316,7 +2316,7 @@ process_flag(_Flag, _Value) ->
{min_heap_size, MinHeapSize :: non_neg_integer()} |
{min_bin_vheap_size, MinBinVHeapSize :: non_neg_integer()} |
{max_heap_size, MaxHeapSize :: max_heap_size()} |
- {monitored_by, Pids :: [pid()]} |
+ {monitored_by, MonitoredBy :: [pid() | port() | nif_resource()]} |
{monitors,
Monitors :: [{process | port, Pid :: pid() | port() |
{RegName :: atom(), Node :: node()}}]} |