Switch to start_link
Start all processes linked - to collapse the whole tree if one process fails
This commit is contained in:
parent
92bd2513c1
commit
082eabb65b
7 changed files with 20 additions and 18 deletions
|
@ -59,9 +59,9 @@
|
|||
|
||||
clerk_new(Owner, Manifest, CompressionMethod) ->
|
||||
{ok, Pid} =
|
||||
gen_server:start(?MODULE,
|
||||
[{compression_method, CompressionMethod}],
|
||||
[]),
|
||||
gen_server:start_link(?MODULE,
|
||||
[{compression_method, CompressionMethod}],
|
||||
[]),
|
||||
ok = gen_server:call(Pid, {load, Owner, Manifest}, infinity),
|
||||
leveled_log:log("PC001", [Pid, Owner]),
|
||||
{ok, Pid}.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue