From 80e2dbe083b2b91a6d7509b5ba2c107851785e5c Mon Sep 17 00:00:00 2001 From: aland Date: Thu, 6 Mar 2008 14:39:29 +0000 Subject: [PATCH] Added '-t' command-line options. (Undocumented) --- src/main/radiusd.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/main/radiusd.c b/src/main/radiusd.c index 856db32..bc38866 100644 --- a/src/main/radiusd.c +++ b/src/main/radiusd.c @@ -54,11 +54,6 @@ RCSID("$Id$") # define WIFEXITED(stat_val) (((stat_val) & 255) == 0) #endif -#ifndef HAVE_PTHREAD_H -#define thread_pool_lock(_x) -#define thread_pool_unlock(_x) -#endif - /* * Global variables. */ @@ -153,7 +148,7 @@ int main(int argc, char *argv[]) mainconfig.log_file = NULL; /* Process the options. */ - while ((argval = getopt(argc, argv, "Cd:fhi:l:mn:p:svxX")) != EOF) { + while ((argval = getopt(argc, argv, "Cd:fhi:l:mn:p:stvxX")) != EOF) { switch(argval) { case 'C': @@ -211,6 +206,10 @@ int main(int argc, char *argv[]) dont_fork = TRUE; break; + case 't': /* no child threads */ + spawn_flag = FALSE; + break; + case 'v': version(); break; @@ -339,8 +338,7 @@ int main(int argc, char *argv[]) } /* - * It's called the thread pool, but it does a little - * more than that. + * Initialize the event pool, including threads. */ radius_event_init(mainconfig.config, spawn_flag); -- 2.1.4