Skip to content

Commit

Permalink
we no longer use / need the thread pool
Browse files Browse the repository at this point in the history
  • Loading branch information
alandekok committed Jul 25, 2017
1 parent d03b295 commit 0d70fd0
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/main/radiusd.c
Original file line number Diff line number Diff line change
Expand Up @@ -526,11 +526,6 @@ int main(int argc, char *argv[])
*/
radius_pid = getpid();

/*
* Parse the thread pool configuration.
*/
if (thread_pool_bootstrap(main_config.config, &main_config.spawn_workers) < 0) exit(EXIT_FAILURE);

/*
* Initialize Auth-Type, etc. in the virtual servers
* before loading the modules. Some modules need those
Expand Down Expand Up @@ -607,12 +602,6 @@ int main(int argc, char *argv[])
if (virtual_servers_open(sc) < 0) exit(EXIT_FAILURE);
}

/*
* Initialize the threads ONLY if we're spawning, AND
* we're running normally.
*/
if (main_config.spawn_workers && (thread_pool_init() < 0)) exit(EXIT_FAILURE);

event_loop_started = true;

#ifndef NDEBUG
Expand Down Expand Up @@ -778,8 +767,6 @@ int main(int argc, char *argv[])
*/
radius_event_free(); /* Free the requests */

thread_pool_stop(); /* stop all the threads */

talloc_free(global_state); /* Free state entries */

cleanup:
Expand Down

0 comments on commit 0d70fd0

Please sign in to comment.