<div dir="ltr">Hey, <div><br></div><div>What is the reason for not allowing to pass 'monitor' option to processes spawned by erlang:spawn_opt/5? </div><div><br></div><div>The code inside of erlang.erl states:</div>
<div><br></div><div><div> case lists:member(monitor, O) of</div><div><span class="" style="white-space:pre"> </span>false -> ok;</div><div><span class="" style="white-space:pre"> </span>true -> erlang:error(badarg, [N, M, F, A, O])</div>
<div> end,</div></div><div><br></div><div>However the documentation does not clarify anything. </div><div>Setting up a monitor on the returned pid right after spawn works fine though. </div><div><br></div><div>Thanks, </div>
<div>Michal </div></div>