lp://staging/~piotr-sikora/libmemcached/fix-tests-on-openbsd
Created by
Piotr Sikora
and last modified
- Get this branch:
- bzr branch lp://staging/~piotr-sikora/libmemcached/fix-tests-on-openbsd
Only
Piotr Sikora
can upload to this branch. If you are
Piotr Sikora
please log in for upload directions.
Branch merges
Propose for merging
No branches
dependent on this one.
On hold
for merging
into
lp://staging/~tangent-org/libmemcached/trunk
- Libmemcached-developers: Pending requested
-
Diff: 10 lines (+1/-0)1 file modifiedlibtest/server.c (+1/-0)
Branch information
Recent revisions
- 948. By Piotr Sikora
-
server_startup: whitelist ECONNREFUSED in fopen's errno switch.
It seems that because errno doesn't get cleared, the problematic switch
relies on errno value propagated not only from the failed fopen(), but
also from libmemcached_util_ping( ) call ~100 lines before. Running tests on OpenBSD resulted in such error:
Could not open pid file /tmp/memcached.
pidXXXXXX -> fopen(Connection refused) which obviously doesn't make any sense.
This change fixes that and allows tests to run.
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp://staging/~tangent-org/libmemcached/trunk