You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by ja...@apache.org on 2016/06/28 18:35:48 UTC
[trafficserver] branch master updated: TS-4606 TS-4331 0 is a valid
FD
This is an automated email from the ASF dual-hosted git repository.
jacksontj pushed a commit to branch master
in repository https://git-dual.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push:
new 6740497 TS-4606 TS-4331 0 is a valid FD
6740497 is described below
commit 67404970b32d2fc19b4dab606efa265aadfd5d9f
Author: Thomas Jackson <ja...@gmail.com>
AuthorDate: Tue Jun 28 11:34:37 2016 -0700
TS-4606 TS-4331 0 is a valid FD
---
iocore/hostdb/P_RefCountCache.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/iocore/hostdb/P_RefCountCache.h b/iocore/hostdb/P_RefCountCache.h
index 3eba7cb..dc6fce7 100644
--- a/iocore/hostdb/P_RefCountCache.h
+++ b/iocore/hostdb/P_RefCountCache.h
@@ -819,7 +819,7 @@ LoadRefCountCacheFromPath(RefCountCache<CacheEntryType> &cache, std::string dirn
}
int fd = open(filepath.c_str(), O_RDONLY);
- if (fd <= 0) {
+ if (fd < 0) {
return -1; // specific code for missing?
}
--
To stop receiving notification emails like this one, please contact
['"commits@trafficserver.apache.org" <co...@trafficserver.apache.org>'].