struct worker_s *worker; /**< pointer to worker type */
GQuark type; /**< type of worker */
struct rspamd_worker_bind_conf *bind_conf; /**< bind configuration */
- guint16 count; /**< number of workers */
+ gint16 count; /**< number of workers */
GList *listen_socks; /**< listening sockets descriptors */
guint32 rlimit_nofile; /**< max files limit */
guint32 rlimit_maxcore; /**< maximum core file size */
{
gint i;
+ if (cf->count < 0) {
+ msg_info_main ("skip spawning of worker %s: disabled in configuration",
+ cf->worker->name);
+
+ return;
+ }
if (cf->worker->flags & RSPAMD_WORKER_UNIQUE) {
if (cf->count > 1) {
msg_warn_main (