From dbbf162dc9be0aef47f2d1f1fcddb7ae4e074d47 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Wed, 28 Apr 2004 20:59:48 +0000 Subject: Tons of fixes, debugging, changes, added apache module --- common/buffer.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'common/buffer.c') 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; } } -- cgit v1.2.3