[erlang-questions] Using 'monitor' with spawn_opt/3 throws badarg. Documentation bug?
e@REDACTED
e@REDACTED
Mon Feb 23 21:12:10 CET 2015
NO, i am wrong! ignore the previous message
On 02/23/2015 09:07 PM, e@REDACTED wrote:
> the 0-ary function
> does not unify with a pair of arguments provided.
> i suspect this is the issue.
>
>
> On 02/23/2015 04:17 PM, Roger Lipscombe wrote:
>> I'm attempting to use spawn_opt/3 with a remote node, like this:
>>
>> Fun = fun() -> ok end,
>> {Pid, Ref} = spawn_opt(Node, Fun, [link, monitor]).
>>
>> It fails with:
>>
>> {badarg,
>> [{erlang,spawn_opt,
>> ['imp_server@REDACTED',erlang,apply,
>> [#Fun<erl_eval.20.80484245>,[]],
>> [link,monitor]],
>> []}
>>
>> Now, the documentation at
>> http://www.erlang.org/doc/man/erlang.html#spawn_opt-5 says that the
>> 'monitor' option is not allowed for spawn_opt/5. It says nothing about
>> spawn_opt/3.
>>
>> Looking at the error message, it looks like spawn_opt/3 simply calls
>> spawn_opt/5. Does this note about 'monitor' being unsupported need to
>> be in documentation for both functions?
>> _______________________________________________
>> erlang-questions mailing list
>> erlang-questions@REDACTED
>> http://erlang.org/mailman/listinfo/erlang-questions
>>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
More information about the erlang-questions
mailing list