aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-05-18 13:22:18 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-05-18 13:22:18 +0100
commit44fac61f09abfb39962eda081859a434f9a34b82 (patch)
tree7cd0156b51e1adc469be290e8a4adda8754e5fdc /src/main.c
parent87120745feb0a1f90196b1fb21b4f9f2eff8b328 (diff)
downloadrspamd-44fac61f09abfb39962eda081859a434f9a34b82.tar.gz
rspamd-44fac61f09abfb39962eda081859a434f9a34b82.zip
Fix error on spawning unique workers.
Issue: #282 Reported by: @moisseev
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/main.c b/src/main.c
index eb90be09e..5f34c1055 100644
--- a/src/main.c
+++ b/src/main.c
@@ -683,12 +683,10 @@ spawn_workers (struct rspamd_main *rspamd)
if (listen_ok) {
if (cf->worker->unique) {
if (cf->count > 1) {
- msg_err ("cannot spawn more than 1 %s worker, so spawn one",
+ msg_warn ("cannot spawn more than 1 %s worker, so spawn one",
cf->worker->name);
}
- else {
- fork_worker (rspamd, cf);
- }
+ fork_worker (rspamd, cf);
}
else if (cf->worker->threaded) {
fork_worker (rspamd, cf);