From 3d66e68e9559784960c34de3de7dae77e232d559 Mon Sep 17 00:00:00 2001 From: Marko Date: Tue, 7 May 2019 10:08:39 +0300 Subject: [PATCH] MXS-2170 Start MaxScale normally if it gets the same PID as previous MaxScale Check is made to see if the found MaxScale PID is owned by the process itself. --- server/core/gateway.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/core/gateway.cc b/server/core/gateway.cc index 9eed4ae2d..a23fea6fc 100644 --- a/server/core/gateway.cc +++ b/server/core/gateway.cc @@ -2368,7 +2368,7 @@ bool pid_is_maxscale(int pid) if (file && std::getline(file, line)) { - if (line == "maxscale") + if (line == "maxscale" && pid != getpid()) { rval = true; }