[erlang-questions] Monitor option in spawn_opt/5
Sat Jul 27 12:05:37 CEST 2013
What is the reason for not allowing to pass 'monitor' option to processes
spawned by erlang:spawn_opt/5?
The code inside of erlang.erl states:
case lists:member(monitor, O) of
false -> ok;
true -> erlang:error(badarg, [N, M, F, A, O])
However the documentation does not clarify anything.
Setting up a monitor on the returned pid right after spawn works fine
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions