Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

fix pid collision #148

Merged
merged 1 commit into from

2 participants

@mihawk

No description provided.

@evanmiller evanmiller merged commit a0394bf into ChicagoBoss:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Aug 25, 2012
  1. @mihawk

    fix pid collision

    mihawk authored
This page is out of date. Refresh to see the latest.
Showing with 6 additions and 2 deletions.
  1. +6 −2 src/boss/boss_web_controller.erl
View
8 src/boss/boss_web_controller.erl
@@ -119,8 +119,12 @@ init(Config) ->
SSLOptions = boss_env:get_env(ssl_options, []),
error_logger:info_msg("SSL:~p~n", [SSLOptions]),
- %service supervisor
- {ok, ServicesSupPid} = boss_service_sup:start_link(),
+ {ok, ServicesSupPid} = case MasterNode of
+ ThisNode ->
+ boss_service_sup:start_link();
+ _AnyNode ->
+ {ok, undefined}
+ end,
ServerConfig = [{loop, fun(Req) ->
?MODULE:handle_request(Req, RequestMod, ResponseMod)
Something went wrong with that request. Please try again.