From e7510dc082d84a87558208f47d14d27c86885809 Mon Sep 17 00:00:00 2001 From: Daniel-Constantin Mierla Date: Thu, 11 Jun 2015 10:06:19 +0200 Subject: [PATCH] async: initialize module timer processes based on workers parameter --- modules/async/async_mod.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/modules/async/async_mod.c b/modules/async/async_mod.c index 8cd6faceb57..2240e70d72b 100644 --- a/modules/async/async_mod.c +++ b/modules/async/async_mod.c @@ -116,16 +116,20 @@ static int mod_init(void) */ static int child_init(int rank) { + int i; + if (rank!=PROC_MAIN) return 0; if(async_workers<=0) return 0; - if(fork_dummy_timer(PROC_TIMER, "ASYNC MOD TIMER", 1 /*socks flag*/, + for(i=0; i