From 77aff88ed7230cd36c267a25660c9f2ec6c5b4b2 Mon Sep 17 00:00:00 2001 From: MassimilianoPinto Date: Wed, 11 Jan 2017 15:30:57 +0100 Subject: [PATCH] Maxbinlogcheck gets stuck when binlog file is not existant/readable Missing exit() caused maxbinlogcheck being stuck on log_manager call when specified binlog file is not existed/redable --- server/modules/routing/binlogrouter/maxbinlogcheck.c | 1 + 1 file changed, 1 insertion(+) diff --git a/server/modules/routing/binlogrouter/maxbinlogcheck.c b/server/modules/routing/binlogrouter/maxbinlogcheck.c index 3668c2fc9..3760c0978 100644 --- a/server/modules/routing/binlogrouter/maxbinlogcheck.c +++ b/server/modules/routing/binlogrouter/maxbinlogcheck.c @@ -169,6 +169,7 @@ int main(int argc, char **argv) MXS_FREE(inst); mxs_log_flush_sync(); mxs_log_finish(); + exit(EXIT_FAILURE); } inst->binlog_fd = fd;