[erlang-questions] Monitor option in spawn_opt/5
Michał Ptaszek
erlang@REDACTED
Sat Jul 27 12:05:37 CEST 2013
Hey,
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])
end,
However the documentation does not clarify anything.
Setting up a monitor on the returned pid right after spawn works fine
though.
Thanks,
Michal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20130727/ae646a27/attachment.htm>
More information about the erlang-questions
mailing list