[strongSwan-dev] fflush() for file_logger_t?
J. Tang
tang at jtang.org
Thu May 20 00:44:12 CEST 2010
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?
--
Jason Tang / tang at jtang.org / http://www.jtang.org
More information about the Dev
mailing list