summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-04-04 17:46:39 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-04-04 17:46:39 +0100
commit69a72071bdeadae86bf1b387f5b3e69266ead1c7 (patch)
treef88906bbd48a6a556c80dd88150c4c0358bb6b24 /src
parent9a03a7ac0c13d1c18f98f6f7c912a20576bb34fb (diff)
downloadrspamd-69a72071bdeadae86bf1b387f5b3e69266ead1c7.tar.gz
rspamd-69a72071bdeadae86bf1b387f5b3e69266ead1c7.zip
[Minor] Some fixes
Diffstat (limited to 'src')
-rw-r--r--src/libserver/rspamd_control.c1
-rw-r--r--src/worker.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/src/libserver/rspamd_control.c b/src/libserver/rspamd_control.c
index cc336174e..7c5f365dd 100644
--- a/src/libserver/rspamd_control.c
+++ b/src/libserver/rspamd_control.c
@@ -809,6 +809,7 @@ rspamd_srv_handler (gint fd, short what, gpointer ud)
wcmd.cmd.log_pipe.type = cmd.cmd.log_pipe.type;
rspamd_control_broadcast_cmd (srv, &wcmd, rfd,
rspamd_control_log_pipe_io_handler, NULL);
+ break;
default:
msg_err ("unknown command type: %d", cmd.type);
break;
diff --git a/src/worker.c b/src/worker.c
index 8056b3f0f..4a646b730 100644
--- a/src/worker.c
+++ b/src/worker.c
@@ -376,9 +376,11 @@ rspamd_worker_log_pipe_handler (struct rspamd_main *rspamd_main,
lp->type = cmd->cmd.log_pipe.type;
DL_APPEND (ctx->log_pipes, lp);
+ msg_info ("added new log pipe");
}
else {
rep.reply.log_pipe.status = ENOENT;
+ msg_err ("cannot attach log pipe: invalid fd");
}
if (write (fd, &rep, sizeof (rep)) != sizeof (rep)) {