filelog: Ignore flush_line option if setlinebuf() not supported

This commit is contained in:
Martin Willi
2014-06-04 15:53:04 +02:00
parent efcf249aeb
commit b9dca7057c
2 changed files with 3 additions and 1 deletions
@@ -214,10 +214,12 @@ METHOD(file_logger_t, open_, void,
this->filename, strerror(errno));
return;
}
#ifdef HAVE_SETLINEBUF
if (flush_line)
{
setlinebuf(file);
}
#endif /* HAVE_SETLINEBUF */
}
this->lock->write_lock(this->lock);
close_file(this);