aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2013-12-04 23:54:44 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2013-12-04 23:54:44 +0000
commit244757cec52b1a90369ceb641bdb1f31e02d104d (patch)
treeacbc9df6eb72d813e9d630a36b5995ec4bafa94a /src/main.h
parent304e5aa0ed96db2e609377a977abcb990c31aa5b (diff)
downloadrspamd-244757cec52b1a90369ceb641bdb1f31e02d104d.tar.gz
rspamd-244757cec52b1a90369ceb641bdb1f31e02d104d.zip
Fix race condition in the controller IO.
Diffstat (limited to 'src/main.h')
-rw-r--r--src/main.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.h b/src/main.h
index 29c8a9f0c..86f916285 100644
--- a/src/main.h
+++ b/src/main.h
@@ -135,7 +135,7 @@ union sa_union {
*/
struct controller_command;
struct controller_session;
-typedef void (*controller_func_t)(gchar **args, struct controller_session *session);
+typedef gboolean (*controller_func_t)(gchar **args, struct controller_session *session);
struct controller_session {
struct rspamd_worker *worker; /**< pointer to worker structure (controller in fact) */
@@ -168,7 +168,7 @@ struct controller_session {
f_str_t *learn_buf; /**< learn input */
GList *parts; /**< extracted mime parts */
gint in_class; /**< positive or negative learn */
- void (*other_handler)(struct controller_session *session,
+ gboolean (*other_handler)(struct controller_session *session,
f_str_t *in); /**< other command handler to execute at the end of processing */
void *other_data; /**< and its data */
controller_func_t custom_handler; /**< custom command handler */