aboutsummaryrefslogtreecommitdiffstats
path: root/src/worker.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-04-04 14:32:18 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-04-04 14:32:18 +0100
commitc442adeaa297aa760fe7c4fba63c1324056fcc79 (patch)
treef401b93691418a89d791e4174d2d41d1d8a1185b /src/worker.c
parent007c2befbe517ac6d44830a7900c3ac3fdf6d634 (diff)
downloadrspamd-c442adeaa297aa760fe7c4fba63c1324056fcc79.tar.gz
rspamd-c442adeaa297aa760fe7c4fba63c1324056fcc79.zip
[Feature] Rework system of workers' flags
Diffstat (limited to 'src/worker.c')
-rw-r--r--src/worker.c15
1 files changed, 6 insertions, 9 deletions
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, \