diff options
author | Stef Walter <stef@memberwebs.com> | 2004-04-28 20:59:48 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2004-04-28 20:59:48 +0000 |
commit | dbbf162dc9be0aef47f2d1f1fcddb7ae4e074d47 (patch) | |
tree | c06b131bc9f249557d9891d07977c4f0f3d0f15b /common/buffer.c | |
parent | 8368de7830f336533f9fe6369641070239bf739c (diff) |
Tons of fixes, debugging, changes, added apache module
Diffstat (limited to 'common/buffer.c')
-rw-r--r-- | common/buffer.c | 6 |
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; } } |