From: Alan T. DeKok Date: Tue, 25 Jul 2017 15:40:31 +0000 (-0400) Subject: we no longer use / need the thread pool X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d70fd052a37c4e03e3b96665093ddcb35756faf;p=thirdparty%2Ffreeradius-server.git we no longer use / need the thread pool --- diff --git a/src/main/radiusd.c b/src/main/radiusd.c index d10084d39df..7446c84318d 100644 --- a/src/main/radiusd.c +++ b/src/main/radiusd.c @@ -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 @@ -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 @@ -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: