try to grab log data more aggressively
[project/netifd.git] / main.c
diff --git a/main.c b/main.c
index 4282e4a..bed0edd 100644 (file)
--- a/main.c
+++ b/main.c
@@ -129,7 +129,7 @@ retry:
        }
        proc->log_buf_ofs = len;
 
-       if (read_len == maxlen)
+       if (read_len > 0)
                goto retry;
 
 out: