diff options
-rw-r--r-- | utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |