[erlang-questions] parallel tcp server closed once spawned

Ulf Wiger (TN/EAB) <>
Tue Oct 16 14:50:48 CEST 2007


Michael Campbell wrote:
>> para_server() ->
>>     spawn(fun() ->
>>                   para_server_1()
>>           end).
> 
> 
> Is there a difference in the spawn call above and:
> 
> spawn(fun() ->
>             para_server_1/0
> end).

That would be spawn(fun para_server_1/0).

The way you wrote it, you'd be trying to divide
an atom by zero.

To my knowledge, there isn't any difference.

BR,
Ulf W



More information about the erlang-questions mailing list