From 902f904ed395521f56e5bfce8f5693cb7fd3805d Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sat, 29 Dec 2012 18:54:54 +0100 Subject: [PATCH] log: fix processing of incomplete lines Signed-off-by: Felix Fietkau --- main.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.c b/main.c index 56851e0..c1f55e9 100644 --- a/main.c +++ b/main.c @@ -111,7 +111,9 @@ netifd_process_log_read_cb(struct ustream *s, int bytes) netifd_log_message(L_NOTICE, "%s (%d): %s [...]\n", log_prefix, proc->uloop.pid, data); proc->log_overflow = true; - } + } else + break; + ustream_consume(s, len); } while (1); } -- 2.25.1