Given the two Erlang nodes, "foo @host" and "bar @host", the following prints out to "foo":
(foo@host) rpc:call('bar@host', io, format, ["~p", [test]]).
While the "bar" displays the following:
(foo@host) rpc:call('bar@host', erlang, display, [test]).
Even if erlang:display/1it is intended to be used only for debugging, both functions should send material to standard output. Each process should inherit the group leader from its parent, so I would expect the two functions to behave in a consistent manner.
Is there any justification for the above behavior?
source
share