summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-12-29 18:54:54 +0100
committerFelix Fietkau <nbd@openwrt.org>2012-12-29 18:54:54 +0100
commit902f904ed395521f56e5bfce8f5693cb7fd3805d (patch)
treecbd57b5ae41dace6c8538b3f76a2a0297d515962 /main.c
parent2eca28705a27ab37ee902308af2c134c64c95e61 (diff)
downloadnetifd-902f904ed395521f56e5bfce8f5693cb7fd3805d.tar.gz
log: fix processing of incomplete lines
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 3 insertions, 1 deletions
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);
}