From: Felix Fietkau Date: Sat, 29 Dec 2012 17:54:54 +0000 (+0100) Subject: log: fix processing of incomplete lines X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=902f904ed395521f56e5bfce8f5693cb7fd3805d;p=oweals%2Fnetifd.git log: fix processing of incomplete lines Signed-off-by: Felix Fietkau --- 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); }