summaryrefslogtreecommitdiff
path: root/src/plop_sup.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/plop_sup.erl')
-rw-r--r--src/plop_sup.erl8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/plop_sup.erl b/src/plop_sup.erl
index 3d0e66d..1d08d60 100644
--- a/src/plop_sup.erl
+++ b/src/plop_sup.erl
@@ -8,15 +8,15 @@ start_link(Args) ->
supervisor:start_link({local, ?MODULE}, ?MODULE, Args).
%% For testing.
-start_in_shell() ->
- {ok, Pid} = start_link([]),
+start_in_shell(Args) ->
+ {ok, Pid} = start_link(Args),
unlink(Pid).
%% Supervisor callback
-init(_Args) ->
+init(Args) ->
{ok, {{one_for_one, 3, 10},
[{the_plop,
- {plop, start_link, []}, % Here's where key file name and pass phrase go.
+ {plop, start_link, Args}, % All arguments go to plop.
permanent,
10000, % Shut down within 10s.
worker, [plop]},