diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-04-04 18:21:33 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-04-04 18:21:33 +0100 |
commit | dea4e8ebc80fac3ea5b546387adae2fa7a5af6c4 (patch) | |
tree | cf0607e349355df65bfaed1ce3c96c9024ac4236 /src/libserver/rspamd_control.c | |
parent | 369a6c48b62ecfbfcd670498e23ec2500cba3bbb (diff) | |
download | rspamd-dea4e8ebc80fac3ea5b546387adae2fa7a5af6c4.tar.gz rspamd-dea4e8ebc80fac3ea5b546387adae2fa7a5af6c4.zip |
[Fix] Some fixes for log pipe handling
Diffstat (limited to 'src/libserver/rspamd_control.c')
-rw-r--r-- | src/libserver/rspamd_control.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libserver/rspamd_control.c b/src/libserver/rspamd_control.c index 7c5f365dd..8c0a150e2 100644 --- a/src/libserver/rspamd_control.c +++ b/src/libserver/rspamd_control.c @@ -549,6 +549,7 @@ rspamd_control_default_cmd_handler (gint fd, case RSPAMD_CONTROL_HYPERSCAN_LOADED: case RSPAMD_CONTROL_FUZZY_STAT: case RSPAMD_CONTROL_FUZZY_SYNC: + case RSPAMD_CONTROL_LOG_PIPE: break; case RSPAMD_CONTROL_RERESOLVE: if (cd->worker->srv->cfg) { @@ -806,6 +807,7 @@ rspamd_srv_handler (gint fd, short what, gpointer ud) break; case RSPAMD_SRV_LOG_PIPE: memset (&wcmd, 0, sizeof (wcmd)); + wcmd.type = RSPAMD_CONTROL_LOG_PIPE; wcmd.cmd.log_pipe.type = cmd.cmd.log_pipe.type; rspamd_control_broadcast_cmd (srv, &wcmd, rfd, rspamd_control_log_pipe_io_handler, NULL); |