From a64cd9842429e2de2db3bab0834b359fc8536a38 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Tue, 29 Sep 2020 08:34:32 +0200 Subject: [PATCH] fix for pid == -1 --- test/lib/Server.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/lib/Server.cpp b/test/lib/Server.cpp index f31819e8..0c99009b 100644 --- a/test/lib/Server.cpp +++ b/test/lib/Server.cpp @@ -130,7 +130,7 @@ bool Server::isListening() { } Malloced stat(memcached_stat(*memc, nullptr, nullptr)); - if (!*stat || !stat->pid) { + if (!*stat || !stat->pid || stat->pid == -1) { return false; } if (stat->pid != pid) { -- 2.30.2