"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "logger.c" between
memcached-1.6.8.tar.gz and memcached-1.6.9.tar.gz

About: memcached is a high-performance, distributed memory object caching system, generic in nature, but originally intended for use in speeding up dynamic web applications by alleviating database load.

logger.c  (memcached-1.6.8):logger.c  (memcached-1.6.9)
skipping to change at line 449 skipping to change at line 449
int ret = poll(watchers_pollfds, nfd, 0); int ret = poll(watchers_pollfds, nfd, 0);
if (ret < 0) { if (ret < 0) {
perror("something failed with logger thread watcher fd polling"); perror("something failed with logger thread watcher fd polling");
return -1; return -1;
} }
nfd = 0; nfd = 0;
for (x = 0; x < WATCHER_LIMIT; x++) { for (x = 0; x < WATCHER_LIMIT; x++) {
logger_watcher *w = watchers[x]; logger_watcher *w = watchers[x];
if (w == NULL) if (w == NULL || (watcher != WATCHER_ALL && x != watcher))
continue; continue;
data_size = 0; data_size = 0;
/* Early detection of a disconnect. Otherwise we have to wait until /* Early detection of a disconnect. Otherwise we have to wait until
* the next write * the next write
*/ */
if (watchers_pollfds[nfd].revents & POLLIN) { if (watchers_pollfds[nfd].revents & POLLIN) {
char buf[1]; char buf[1];
int res = ((conn*)w->c)->read(w->c, buf, 1); int res = ((conn*)w->c)->read(w->c, buf, 1);
if (res == 0 || (res == -1 && (errno != EAGAIN && errno != EWOULDBLO CK))) { if (res == 0 || (res == -1 && (errno != EAGAIN && errno != EWOULDBLO CK))) {
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)