projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
| inline |
side by side
fix for pid == -1
[awesomized/libmemcached]
/
test
/
lib
/
Server.cpp
diff --git
a/test/lib/Server.cpp
b/test/lib/Server.cpp
index f31819e86ef8dfbc3fa99d9ded1335b34945d55c..0c99009bde95b910c81ce97ae24a985fc1acbaca 100644
(file)
--- 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) {