From: Michael Wallner Date: Tue, 29 Sep 2020 06:34:32 +0000 (+0200) Subject: fix for pid == -1 X-Git-Tag: 1.1.0-beta1~236^2~42 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=a64cd9842429e2de2db3bab0834b359fc8536a38;p=awesomized%2Flibmemcached fix for pid == -1 --- 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) {