testing codes in erl with running processes

Bengt Kleberg eleberg@REDACTED
Fri Apr 25 15:05:36 CEST 2003


> Date: Fri, 25 Apr 2003 08:57:28 -0400 (EDT)
> From: HP Wei <hp@REDACTED>
> Subject: Re: testing codes in erl with running processes

>     I just realized that in my process, I refer to an ets table.
>     And an ets table is associated with the running shell.
>     This should explain why that process dies.
>     
>     If this is the case, I probably have no way to avoid this from
>     happening.  The easy way is to develop code in another erl ?

write a function that spawns a process, and let that process:

1 create the ets table
2 not die


bengt




More information about the erlang-questions mailing list