aboutsummaryrefslogtreecommitdiffstats
path: root/src/charon/daemon.c
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2008-04-03 08:37:24 +0000
committerMartin Willi <martin@strongswan.org>2008-04-03 08:37:24 +0000
commit6af29ccf33a3e2c0feb5724a60591b8abeb9339b (patch)
tree7d184200aab03ffbd4bc31f7eac287c6221c6c88 /src/charon/daemon.c
parent6e4e27f8deddc817c9c1079429318ba48003ad33 (diff)
downloadstrongswan-6af29ccf33a3e2c0feb5724a60591b8abeb9339b.tar.bz2
strongswan-6af29ccf33a3e2c0feb5724a60591b8abeb9339b.tar.xz
configure option in strongswan.conf for thread count
Diffstat (limited to 'src/charon/daemon.c')
-rw-r--r--src/charon/daemon.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/charon/daemon.c b/src/charon/daemon.c
index cc41b1431..3120cc2eb 100644
--- a/src/charon/daemon.c
+++ b/src/charon/daemon.c
@@ -584,7 +584,9 @@ int main(int argc, char *argv[])
drop_capabilities(private_charon, TRUE);
/* start the engine, go multithreaded */
- charon->processor->set_threads(charon->processor, WORKER_THREADS);
+ charon->processor->set_threads(charon->processor,
+ lib->settings->get_int(lib->settings, "charon.threads",
+ DEFAULT_THREADS));
/* run daemon */
run(private_charon);