From c442adeaa297aa760fe7c4fba63c1324056fcc79 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 4 Apr 2016 14:32:18 +0100 Subject: [Feature] Rework system of workers' flags --- src/worker.c | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'src/worker.c') diff --git a/src/worker.c b/src/worker.c index 3939db702..a4ef7a81a 100644 --- a/src/worker.c +++ b/src/worker.c @@ -45,15 +45,12 @@ gpointer init_worker (struct rspamd_config *cfg); void start_worker (struct rspamd_worker *worker); worker_t normal_worker = { - "normal", /* Name */ - init_worker, /* Init function */ - start_worker, /* Start function */ - TRUE, /* Has socket */ - FALSE, /* Non unique */ - FALSE, /* Non threaded */ - TRUE, /* Killable */ - SOCK_STREAM, /* TCP socket */ - RSPAMD_WORKER_VER /* Version info */ + "normal", /* Name */ + init_worker, /* Init function */ + start_worker, /* Start function */ + RSPAMD_WORKER_HAS_SOCKET|RSPAMD_WORKER_KILLABLE, + SOCK_STREAM, /* TCP socket */ + RSPAMD_WORKER_VER /* Version info */ }; #define msg_err_ctx(...) rspamd_default_log_function(G_LOG_LEVEL_CRITICAL, \ -- cgit v1.2.3