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

Jonas Boberg <>
Thu Nov 24 15:33:18 CET 2011


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}).

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


More information about the erlang-bugs mailing list