diff options
author | Felix Fietkau <nbd@openwrt.org> | 2012-12-29 18:54:54 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2012-12-29 18:54:54 +0100 |
commit | 902f904ed395521f56e5bfce8f5693cb7fd3805d (patch) | |
tree | cbd57b5ae41dace6c8538b3f76a2a0297d515962 /main.c | |
parent | 2eca28705a27ab37ee902308af2c134c64c95e61 (diff) |
log: fix processing of incomplete lines
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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); } |