From cabc0995c0e0964ecbef18470c6a483022879071 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Mon, 4 Oct 2010 06:04:19 +0200 Subject: Major reorganisation of the core, still unfinished... --- src/core/ephraim_config.erl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/core/ephraim_config.erl') diff --git a/src/core/ephraim_config.erl b/src/core/ephraim_config.erl index 6c556c2..dd9e64d 100644 --- a/src/core/ephraim_config.erl +++ b/src/core/ephraim_config.erl @@ -11,6 +11,8 @@ start_link() -> -spec init(term()) -> {ok, dict()}. init(_Args) -> + process_flag(trap_exit, true), + {ok, Terms} = file:consult(config_path() ++ "/ephraim.cfg"), Config = dict:from_list(lists:map(fun(Term) -> {element(1, Term), Term} end, Terms)), @@ -40,7 +42,6 @@ get(Key) -> -spec handle_call(term(), {pid(), term()}, dict()) -> {reply, tuple() | error, dict()}. handle_call({get, Key}, _From, Config) -> - ephraim_config ! {self(), get, Key}, case dict:find(Key, Config) of {ok, Value} -> {reply, Value, Config}; -- cgit v1.2.3