svlogd: fix bug 521: use line buffering if any filtering is done

function                                             old     new   delta
logdirs_reopen                                      1296    1310     +14
svlogd_main                                         1439    1444      +5

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko
2009-08-02 00:55:49 +02:00
parent e2944af43e
commit aebb742939
4 changed files with 137 additions and 27 deletions

View File

@@ -129,7 +129,7 @@ static NOINLINE pid_t runsv(const char *name)
static NOINLINE int do_rescan(void)
{
DIR *dir;
direntry *d;
struct dirent *d;
int i;
struct stat s;
int need_rescan = 0;