summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2009-12-30 12:30:07 +0000
committerChristian Pointner <equinox@helsinki.at>2009-12-30 12:30:07 +0000
commit3bcdcbca5f992232ff3c95487a46e10942e459d4 (patch)
treed0d533a8a5219638944830af25a6769944316f0f
parentfixed build (diff)
fixed close after recv error
-rw-r--r--utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils.c b/utils.c
index e78e8ae..a61ca1c 100644
--- a/utils.c
+++ b/utils.c
@@ -121,7 +121,7 @@ int nonblock_recvline(read_buffer_t* buffer, int fd, int inotify_fd, watch_list_
if(ret == -1 && errno == EAGAIN)
return 0;
else if(ret < 0)
- break;
+ return 2;
if(buffer->buf[buffer->offset] == '\n') {
buffer->buf[buffer->offset] = 0;