X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=libtest%2Fmemcached.cc;h=678c3cf18105a68f6ab64e71e85d88932ed52b05;hb=750f7447e014aab84e69e42b21feb1d996b2cf13;hp=c5358bf53fa5da4bdf4b6b7c68f777bddd87c873;hpb=93dec285cdb4aab2bff0bae0d50e033b69560181;p=m6w6%2Flibmemcached diff --git a/libtest/memcached.cc b/libtest/memcached.cc index c5358bf5..678c3cf1 100644 --- a/libtest/memcached.cc +++ b/libtest/memcached.cc @@ -20,6 +20,7 @@ */ +#include #include #include @@ -87,7 +88,8 @@ public: // Memcached is slow to start, so we need to do this if (pid_file().empty() == false) { - if (error_is_ok and not wait_for_pidfile()) + if (error_is_ok and + wait_for_pidfile() == false) { Error << "Pidfile was not found:" << pid_file(); return -1; @@ -235,9 +237,9 @@ public: pid_t get_pid(bool error_is_ok) { // Memcached is slow to start, so we need to do this - if (not pid_file().empty()) + if (pid_file().empty() == false) { - if (error_is_ok and not wait_for_pidfile()) + if (error_is_ok and wait_for_pidfile() == false) { Error << "Pidfile was not found:" << pid_file(); return -1; @@ -364,9 +366,10 @@ public: pid_t get_pid(bool error_is_ok) { // Memcached is slow to start, so we need to do this - if (not pid_file().empty()) + if (pid_file().empty() == false) { - if (error_is_ok and not wait_for_pidfile()) + if (error_is_ok and + wait_for_pidfile() == false) { Error << "Pidfile was not found:" << pid_file(); return -1;