Skip to content

Commit

Permalink
kazoo: init cfg framework in child processes
Browse files Browse the repository at this point in the history
fixes crashing since commit c7bec33
  • Loading branch information
lazedo committed Aug 6, 2016
1 parent 6533627 commit d63869c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions modules/kazoo/kazoo.c
Expand Up @@ -393,6 +393,7 @@ static int mod_child_init(int rank)
if (pid<0)
return -1; /* error */
if(pid==0){
if (cfg_child_init()) return -1;
close(kz_worker_pipes_fds[i*2+1]);
return(kz_amqp_consumer_worker_proc(kz_worker_pipes_fds[i*2]));
}
Expand All @@ -406,6 +407,7 @@ static int mod_child_init(int rank)
if (pid<0)
return -1; /* error */
if(pid==0){
if (cfg_child_init()) return -1;
return(kz_amqp_consumer_proc(s));
}
}
Expand All @@ -416,6 +418,7 @@ static int mod_child_init(int rank)
if (pid<0)
return -1; /* error */
if(pid==0){
if (cfg_child_init()) return -1;
close(kz_cmd_pipe_fds[1]);
kz_amqp_publisher_proc(kz_cmd_pipe_fds[0]);
}
Expand Down

0 comments on commit d63869c

Please sign in to comment.