[erlang-questions] parallel tcp server closed once spawned
Bengt Kleberg
bengt.kleberg@REDACTED
Tue Oct 16 14:50:18 CEST 2007
if you write para_server_1/0 you are dividing an atom (para_server_1)
with 0. that is a sure way to crash.
luckily enough you are doing it in a seperate process and the rest of
your applicaiton will survive :-)
bengt
Those were the days...
EPO guidelines 1978: "If the contribution to the known art resides
solely in a computer program then the subject matter is not
patentable in whatever manner it may be presented in the claims."
On 2007-10-16 14:40, Michael Campbell wrote:
> As a tangent to this conversation...
>
> On 10/16/07, Chandru <chandrashekhar.mullaparthi@REDACTED> wrote:
>> I've included a modified version of the
>> para_server which will work whether you spawn or call it directly from
>> the shell.
>
>
>> 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).
>
> ? I've seen in other examples the M:F/A format for methods that take
> a fun, and wondered if this were a stylistic or subtle "real"
> difference.
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions
More information about the erlang-questions
mailing list