Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

44 lines (35 sloc) 1.348 kb
%%%----------------------------------------------------------------------
%%% File : gproc_app.erl
%%% Purpose : GPROC application callback module
%%%----------------------------------------------------------------------
-module(gproc_app).
-behaviour(application).
%% application callbacks
-export([start/0, start/2, stop/1]).
%%%----------------------------------------------------------------------
%%% Callback functions from application
%%%----------------------------------------------------------------------
%%----------------------------------------------------------------------
%% Func: start/2
%% Returns: {ok, Pid} |
%% {ok, Pid, State} |
%% {error, Reason}
%%----------------------------------------------------------------------
start() ->
start(normal, []).
start(_Type, StartArgs) ->
case gproc_sup:start_link(StartArgs) of
{ok, Pid} ->
{ok, Pid};
Error ->
Error
end.
%%----------------------------------------------------------------------
%% Func: stop/1
%% Returns: any
%%----------------------------------------------------------------------
stop(_State) ->
ok.
%%%----------------------------------------------------------------------
%%% Internal functions
%%%----------------------------------------------------------------------
Jump to Line
Something went wrong with that request. Please try again.