diff options
author | Christian Pointner <equinox@helsinki.at> | 2009-12-30 12:30:07 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2009-12-30 12:30:07 (GMT) |
commit | 3bcdcbca5f992232ff3c95487a46e10942e459d4 (patch) | |
tree | d0d533a8a5219638944830af25a6769944316f0f | |
parent | 3248675ba9a4bf5c44caec94b95d5f9dcd52a913 (diff) |
fixed close after recv error
-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; |