[strongSwan-dev] fflush() for file_logger_t?
andreas.steffen at strongswan.org
Thu May 20 07:09:00 CEST 2010
such a flush_line flag was introduced about two weeks ago
and is available in the latest developers release
On 05/20/2010 12:44 AM, J. Tang wrote:
> I have been performing some experiments with strongSwan 4.3.6, though
> the 4.4.0 code does the same thing. In file_logger.c, log_() does not
> perform a flush after writing things. While doing some tests that
> require synchronization and monitoring of the log file, the buffered
> writes are throwing my tests off.
> I would believe that the code explicitly call fflush() on line 70,
> after the while loop? Obviously there are performance issues; maybe
> there should be a flag in strongswan.conf to always flush?
Andreas Steffen andreas.steffen at strongswan.org
strongSwan - the Linux VPN Solution! www.strongswan.org
Institute for Internet Technologies and Applications
University of Applied Sciences Rapperswil
CH-8640 Rapperswil (Switzerland)
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 3430 bytes
Desc: S/MIME Cryptographic Signature
More information about the Dev