[erlang-questions] Need help with simple_one_for_one
Matt Williamson
dawsdesign@REDACTED
Wed Aug 20 15:16:23 CEST 2008
Hello,
I am starting a gen_fsm with supervisor:start_child(erlfs_store_worker_sup,
{store_chunk, Chunk}) but I get the following error:
{error,
{'EXIT',
{badarg,
[{erlang,
apply,
[erlfs_store_worker_fsm,
start_link,
{store_chunk,
{chunk,
{chunk_meta,
{file_meta,
"test123",
"test.txt",
0,
"text/plain",
{{0,1,1},{0,0,0}}},
0,
0,
[]},
<<"Hello world!">>}}]},
{supervisor,do_start_child_i,3},
{supervisor,handle_call,3},
{gen_server,handle_msg,6},
{proc_lib,init_p,5}]}}}
I've been trying to figure it out for a while, but I am having a hard time.
Here is the Child Spec in the supervisor (erlfs_store_worker_sup):
init(Args) ->
WorkerSpec = {erlfs_store_worker_fsm, {erlfs_store_worker_fsm,
start_link, []},
temporary, 2000, worker, [erlfs_store_worker_fsm]},
{ok,{{simple_one_for_one, 0, 1}, [WorkerSpec]}}.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20080820/5fbf07a2/attachment.htm>
More information about the erlang-questions
mailing list