Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
Fix start/start_link return values
  • Loading branch information
davisp authored and rnewson committed Jul 30, 2014
1 parent 320cf0c commit a280611ccc81431c8763e9d01e597524001ae881
Showing 1 changed file with 4 additions and 2 deletions.
@@ -51,7 +51,8 @@ behaviour_info(_) ->


start(Mod, Arg, Options) ->
erlang:spawn(?MODULE, do_init, [Mod, Arg, Options]).
Pid = erlang:spawn(?MODULE, do_init, [Mod, Arg, Options]),
{ok, Pid}.


start(Name, Mod, Arg, Options) ->
@@ -64,7 +65,8 @@ start(Name, Mod, Arg, Options) ->


start_link(Mod, Arg, Options) ->
erlang:spawn_link(?MODULE, do_init, [Mod, Arg, Options]).
Pid = erlang:spawn_link(?MODULE, do_init, [Mod, Arg, Options]),
{ok, Pid}.


start_link(Name, Mod, Arg, Options) ->

0 comments on commit a280611

Please sign in to comment.