aboutsummaryrefslogtreecommitdiffstats
path: root/src/util.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2009-09-21 15:18:54 +0400
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2009-09-21 15:18:54 +0400
commit16b6241644a83aeef2711c2d7286b9f878b1c6f0 (patch)
treef3391413c630546c07fc65ab6d9883f23ec445c8 /src/util.c
parent427315a198e3542ce3fabc343b8f9f7a396cb895 (diff)
downloadrspamd-16b6241644a83aeef2711c2d7286b9f878b1c6f0.tar.gz
rspamd-16b6241644a83aeef2711c2d7286b9f878b1c6f0.zip
* Cleanify logic of processes dispatcher
Diffstat (limited to 'src/util.c')
-rw-r--r--src/util.c9
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);
}
}