summaryrefslogtreecommitdiff
path: root/common/buffer.c
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2004-04-28 20:59:48 +0000
committerStef Walter <stef@memberwebs.com>2004-04-28 20:59:48 +0000
commitdbbf162dc9be0aef47f2d1f1fcddb7ae4e074d47 (patch)
treec06b131bc9f249557d9891d07977c4f0f3d0f15b /common/buffer.c
parent8368de7830f336533f9fe6369641070239bf739c (diff)
Tons of fixes, debugging, changes, added apache module
Diffstat (limited to 'common/buffer.c')
-rw-r--r--common/buffer.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/common/buffer.c b/common/buffer.c
index 57d20e2..72f0b6c 100644
--- a/common/buffer.c
+++ b/common/buffer.c
@@ -214,13 +214,15 @@ int ha_bufreadline(int fd, ha_buffer_t* buf)
return 0;
/* Transient errors */
- else if(l == -1 && (errno == EINTR || errno == EAGAIN))
+ else if(l == -1 && errno == EAGAIN)
continue;
/* Fatal errors */
else if(l == -1)
{
- ha_message(LOG_ERR, "couldn't read data");
+ if(errno != EINTR)
+ ha_message(LOG_ERR, "couldn't read data");
+
return 0;
}
}