diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-09-21 15:18:54 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2009-09-21 15:18:54 +0400 |
commit | 16b6241644a83aeef2711c2d7286b9f878b1c6f0 (patch) | |
tree | f3391413c630546c07fc65ab6d9883f23ec445c8 /src/util.c | |
parent | 427315a198e3542ce3fabc343b8f9f7a396cb895 (diff) | |
download | rspamd-16b6241644a83aeef2711c2d7286b9f878b1c6f0.tar.gz rspamd-16b6241644a83aeef2711c2d7286b9f878b1c6f0.zip |
* Cleanify logic of processes dispatcher
Diffstat (limited to 'src/util.c')
-rw-r--r-- | src/util.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/util.c b/src/util.c index 7d074a174..ba06c570e 100644 --- a/src/util.c +++ b/src/util.c @@ -288,11 +288,16 @@ init_signals (struct sigaction *signals, sig_t sig_handler) } void -pass_signal_worker (struct workq *workers, int signo) +pass_signal_worker (GList *workers, int signo) { struct rspamd_worker *cur; - TAILQ_FOREACH (cur, workers, next) { + GList *l; + + l = workers; + while (l) { + cur = l->data; kill (cur->pid, signo); + l = g_list_next (l); } } |