ISM: give ISM processes a proper name to help debugging

This commit is contained in:
Harald Welte 2012-01-29 23:37:27 +01:00
parent c2773f018b
commit 153cdc4564
1 changed files with 2 additions and 1 deletions

View File

@ -54,8 +54,9 @@ init([]) ->
start_ism(USAP, DlgId, InvokeID, CcoPid, OpClass, Timeout) ->
SupRef = list_to_atom("tcap_invocation_sup_" ++ integer_to_list(DlgId)),
Name = list_to_atom("tcap_ism_" ++ integer_to_list(DlgId) ++ "_" ++ integer_to_list(InvokeID)),
StartArgs = [USAP, DlgId, InvokeID, CcoPid, OpClass, Timeout],
StartFunc = {gen_fsm, start_link, [tcap_ism_fsm, StartArgs, [{debug,[trace]}]]},
StartFunc = {gen_fsm, start_link, [{local, Name}, tcap_ism_fsm, StartArgs, [{debug,[trace]}]]},
ChildSpec = {ism, StartFunc, temporary, 4000, worker,
[tcap_ism_sup]},
supervisor:start_child(SupRef, ChildSpec).