[erlang-bugs] erlang:monitor(process, {Regname, Nodename}) gives badarg when not alive

Jonas Boberg jonas.boberg@REDACTED
Thu Nov 24 15:33:18 CET 2011


Hi,

erlang:monitor fails with badarg when the local node is not alive.

$ erl
1> erlang:monitor(process, {a, b}).
** exception error: bad argument
     in function  monitor/2
        called as monitor(process,{a,b})

$ erl -sname test
1> erlang:monitor(process, {a, b}).
#Ref<0.0.0.34>

Probably the problem is the documentation of the function rather than
the implementation.
The erlang:monitor_node documentation says 'Failure: badargif the
local node is not alive.', but the documentation for erlang:monitor
doesn't.

Regards
Jonas



More information about the erlang-bugs mailing list