summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--input/packet/ulogd_inppkt_ULOG.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/input/packet/ulogd_inppkt_ULOG.c b/input/packet/ulogd_inppkt_ULOG.c
index 3a94700..cf44474 100644
--- a/input/packet/ulogd_inppkt_ULOG.c
+++ b/input/packet/ulogd_inppkt_ULOG.c
@@ -225,6 +225,8 @@ static int ulog_read_cb(int fd, unsigned int what, void *param)
while ((len = ipulog_read(u->libulog_h, u->libulog_buf,
upi->config_kset->ces[0].u.value, 1))) {
if (len <= 0) {
+ if (errno == EAGAIN)
+ break;
/* this is not supposed to happen */
ulogd_log(ULOGD_ERROR, "ipulog_read = %d! "
"ipulog_errno = %d (%s), "