projects
/
awesomized
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Remove use of system(). Not very portable
[awesomized/libmemcached]
/
libmemcached
/
protocol
/
binary_handler.c
diff --git
a/libmemcached/protocol/binary_handler.c
b/libmemcached/protocol/binary_handler.c
index 2bafdeb1a445df0378bb4e366a955f1fca2bee3c..81c09c99f88f01154857cf4e35e7323f105c873c 100644
(file)
--- a/
libmemcached/protocol/binary_handler.c
+++ b/
libmemcached/protocol/binary_handler.c
@@
-3,7
+3,6
@@
#include <stdlib.h>
#include <sys/types.h>
#include <stdlib.h>
#include <sys/types.h>
-#include <sys/socket.h>
#include <errno.h>
#include <stdbool.h>
#include <string.h>
#include <errno.h>
#include <stdbool.h>
#include <string.h>
@@
-59,11
+58,11
@@
raw_response_handler(const void *cookie,
num_bytes);
if (nw == -1)
{
num_bytes);
if (nw == -1)
{
- if (
errno
== EWOULDBLOCK)
+ if (
get_socket_errno()
== EWOULDBLOCK)
{
break;
}
{
break;
}
- else if (
errno
!= EINTR)
+ else if (
get_socket_errno()
!= EINTR)
{
client->error= errno;
return PROTOCOL_BINARY_RESPONSE_EIO;
{
client->error= errno;
return PROTOCOL_BINARY_RESPONSE_EIO;