1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-05 17:23:15 +02:00

logger: add option logger.file.fsync (closes #1145)

This commit is contained in:
Sébastien Helleu
2018-02-10 08:23:47 +01:00
parent 1bd8998d07
commit 710db5dbcd
23 changed files with 163 additions and 19 deletions
+2
View File
@@ -844,6 +844,8 @@ logger_flush ()
ptr_logger_buffer->log_filename);
}
fflush (ptr_logger_buffer->log_file);
if (weechat_config_boolean (logger_config_file_fsync))
fsync (fileno (ptr_logger_buffer->log_file));
ptr_logger_buffer->flush_needed = 0;
}
}