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.
This commit is contained in:
Marko
2019-05-07 10:08:39 +03:00
parent 4e6ffc0381
commit 3d66e68e95

View File

@ -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;
}