[erlang-bugs] Documentation/Code inconsistency
Bengt Kleberg
bengt.kleberg@REDACTED
Thu Dec 6 15:13:27 CET 2012
Greetings,
I have found that on my machine:
Linux sekic1152 2.6.27.42-0.1-default #1 SMP 2010-01-06 16:07:25 +0100
x86_64 x86_64 x86_64 GNU/Linux
running Erlang/OTP:
Erlang R15B01 (erts-5.9.1) [source] [64-bit] [smp:4:4] [async-threads:0]
[hipe] [kernel-poll:false]
erlang:port_info/2 does not behave as documented:
12> P = erlang:open_port( {spawn, "sleep 100"}, [stream]).
13> erlang:port_info(P, os_pid).
** exception error: bad argument
in function erlang:port_info/2
called as erlang:port_info(#Port<0.599>,os_pid)
Presumably the documentation is mistaken and 'os_pid' does not exist.
bengt
More information about the erlang-bugs
mailing list