Permalink
Browse files

Cleanup module names to be less likely to crash

  • Loading branch information...
1 parent 13f2993 commit 004ae965d69771fb3aeedbee262cb98b48f0b607 @Vagabond committed Feb 9, 2011
View
@@ -2,7 +2,7 @@
[{description, "The Erlang git-daemon"},
{vsn, "0.0.0"},
{modules, []},
- {registered, [server]},
+ {registered, [egitd_server]},
{applications, [kernel, stdlib]},
{mod, {egitd_app, []}},
{start_phases, []}
@@ -1,4 +1,4 @@
--module(conf).
+-module(egitd_conf).
-export([read_conf/1, convert_path/2, eval_erlang_expr/1, eval_erlang_expr/2,
concat/2, namespace3/1, md5_namespace3/1, hexmod8/1]).
@@ -1,4 +1,4 @@
--module(git_client).
+-module(egitd_connection).
-behaviour(gen_server).
-record(state, {
@@ -1,4 +1,4 @@
--module(server).
+-module(egitd_server).
-export([start_link/0, init/1]).
start_link() ->
@@ -41,7 +41,7 @@ try_listen(Times) ->
loop(LSock) ->
{ok, Sock} = gen_tcp:accept(LSock),
- {ok, Pid} = git_client:start_link(Sock),
+ {ok, Pid} = egitd_connection:start_link(Sock),
gen_tcp:controlling_process(Sock, Pid),
loop(LSock).
View
@@ -24,6 +24,6 @@ init([]) ->
{ok, {{one_for_one, 100, 300},
[{server,
- {server, start_link, []},
+ {egitd_server, start_link, []},
permanent, 10000, worker, [server]}
]}}.

0 comments on commit 004ae96

Please sign in to comment.