From: Vsevolod Stakhov Date: Mon, 18 May 2015 12:22:18 +0000 (+0100) Subject: Fix error on spawning unique workers. X-Git-Tag: 0.9.2~17 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=44fac61f09abfb39962eda081859a434f9a34b82;p=rspamd.git Fix error on spawning unique workers. Issue: #282 Reported by: @moisseev --- 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);