Skip to content
This repository

fix pid collision #148

Merged
merged 1 commit into from over 1 year ago

2 participants

chan Evan Miller
chan

No description provided.

Evan Miller evanmiller merged commit a0394bf into from August 27, 2012
Evan Miller evanmiller closed this August 27, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Aug 26, 2012
chan fix pid collision 967f438
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 6 additions and 2 deletions. Show diff stats Hide diff stats

  1. 8  src/boss/boss_web_controller.erl
8  src/boss/boss_web_controller.erl
@@ -119,8 +119,12 @@ init(Config) ->
119 119
     SSLOptions = boss_env:get_env(ssl_options, []),
120 120
     error_logger:info_msg("SSL:~p~n", [SSLOptions]),
121 121
 
122  
-    %service supervisor
123  
-    {ok, ServicesSupPid} = boss_service_sup:start_link(),
  122
+    {ok, ServicesSupPid}  = case MasterNode of
  123
+				ThisNode ->
  124
+				    boss_service_sup:start_link();
  125
+				_AnyNode ->
  126
+				    {ok, undefined}
  127
+			    end,
124 128
 
125 129
     ServerConfig = [{loop, fun(Req) -> 
126 130
                     ?MODULE:handle_request(Req, RequestMod, ResponseMod)
Commit_comment_tip

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.