diff options
author | Björn Gustavsson <[email protected]> | 2016-04-04 14:08:09 +0200 |
---|---|---|
committer | Björn Gustavsson <[email protected]> | 2016-04-07 15:44:50 +0200 |
commit | 8894ff896d45a5aeb720378f66d15eef4db8593b (patch) | |
tree | 4415210faf0c11f8b487ecb48f8662daab96ad9e /lib/kernel/src | |
parent | ed2dfebf8e181f42df4e8a745bd84569983a00bf (diff) | |
download | otp-8894ff896d45a5aeb720378f66d15eef4db8593b.tar.gz otp-8894ff896d45a5aeb720378f66d15eef4db8593b.tar.bz2 otp-8894ff896d45a5aeb720378f66d15eef4db8593b.zip |
Update spec for rpc:pinfo/2
rpc:pinfo/2 is documented as a location-transparent version
of process_info/2. Therefore, it should be expected that
the spec would allow calls with an item list, for example:
rpc:pinfo(Pid, [initial_call,last_calls])
Report-URL: http://bugs.erlang.org/browse/ERL-124
Reported-by: bjfish
Diffstat (limited to 'lib/kernel/src')
-rw-r--r-- | lib/kernel/src/rpc.erl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/kernel/src/rpc.erl b/lib/kernel/src/rpc.erl index 0e1e3f070c..5f83713cf7 100644 --- a/lib/kernel/src/rpc.erl +++ b/lib/kernel/src/rpc.erl @@ -727,6 +727,11 @@ pinfo(Pid) -> -spec pinfo(Pid, Item) -> {Item, Info} | undefined | [] when Pid :: pid(), Item :: atom(), + Info :: term(); + (Pid, ItemList) -> [{Item, Info}] | undefined | [] when + Pid :: pid(), + Item :: atom(), + ItemList :: [Item], Info :: term(). pinfo(Pid, Item) when node(Pid) =:= node() -> |