summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;