Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 286 by [email protected]: --disable-coverage drops "-pthread"
option
http://code.google.com/p/memcached/issues/detail?id=286
What steps will reproduce the problem?
1. configure --disable-coverage && make
2. run ./memcached -v &
3. try to set some value via telnet
What is the expected output? What do you see instead?
Connection closed with message:
Failed to read, and not due to blocking:
errno: 0 Error 0
rcurr=57ebe1 ritem=5b1054 rbuf=57ebd0 rlbytes=13 rsize=2048
What version of the product are you using? On what operating system?
memcached 1.4.14 on illumos
Please provide any additional information below.
The error is due to read(2) returns -1, but errno=0, because
variable "errno" is not thread-local.
"-pthread" option should be always added to compiler, not only when
--enable-coverage