[erlang-bugs] Documentation/Code inconsistency

Patrik Nyblom pan@REDACTED
Fri Dec 7 08:55:29 CET 2012


Hi!
On 12/06/2012 03:13 PM, Bengt Kleberg wrote:
> 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)
The os_pid came in R15B02, you have to upgrade your Erlang installation.
>
> Presumably the documentation is mistaken and 'os_pid' does not exist.
Cheers,
/Patrik
>
>
> bengt
>
> _______________________________________________
> erlang-bugs mailing list
> erlang-bugs@REDACTED
> http://erlang.org/mailman/listinfo/erlang-bugs




More information about the erlang-bugs mailing list