register Port???

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

register Port???

Nico Weling

is it possible to register an port?

Eshell V4.9.1  (abort with ^G)

(testnode)1> TonePid = open_port({spawn, tone}, [{packet, 2}]).

(testnode)2> register(tone_port,TonePid).

=ERROR REPORT==== 20-Sep-2001::16:23:33 ===
Error in process <0.35.0> on node 'testnode' with exit value: {badarg,[{erlang,register,[tone_port,<0,13>]},{erl_eval,expr,3},{erl_eval,exprs,4},{shell,eval_loop,2}]}
** exited: {badarg,[{erlang,register,[tone_port,#Port<0.13>]},
                    {shell,eval_loop,2}]} **

Thanks in advance,