From 69a72071bdeadae86bf1b387f5b3e69266ead1c7 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 4 Apr 2016 17:46:39 +0100 Subject: [PATCH] [Minor] Some fixes --- src/libserver/rspamd_control.c | 1 + src/worker.c | 2 ++ 2 files changed, 3 insertions(+) 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)) { -- 2.39.5