]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
we no longer use / need the thread pool
authorAlan T. DeKok <aland@freeradius.org>
Tue, 25 Jul 2017 15:40:31 +0000 (11:40 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 25 Jul 2017 15:40:31 +0000 (11:40 -0400)
src/main/radiusd.c

index d10084d39df6b672263441bd79d67c38391ba379..7446c84318d64a94e7bec90dda3cc8c494e11396 100644 (file)
@@ -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: