diff options
author | Robin Burchell <robin+git@viroteck.net> | 2012-04-16 12:01:36 +0200 |
---|---|---|
committer | Robin Burchell <robin+git@viroteck.net> | 2012-04-16 12:01:54 +0200 |
commit | 7f0eca26b4614e1a19625834cbe4e1bd60efa84a (patch) | |
tree | 1ce5f169fc1216970f8b666ea1efe866c9a2be6f | |
parent | 234aabf36cd73f814e64118581488504fa875b58 (diff) |
FileWriter hasn't been non-blocking for a very, very long time.
-rw-r--r-- | include/logger.h | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/include/logger.h b/include/logger.h index f6f2f1e4f..2a075431e 100644 --- a/include/logger.h +++ b/include/logger.h @@ -14,17 +14,7 @@ #ifndef LOGGER_H #define LOGGER_H -/** This class implements a nonblocking writer. - * Most people writing an ircd give little thought to their disk - * i/o. On a congested system, disk writes can block for long - * periods of time (e.g. if the system is busy and/or swapping - * a lot). If we just use a blocking fprintf() call, this could - * block for undesirable amounts of time (half of a second through - * to whole seconds). We DO NOT want this, so we make our logfile - * nonblocking and hook it into the SocketEngine. - * NB: If the operating system does not support nonblocking file - * I/O (linux seems to, as does freebsd) this will default to - * blocking behaviour. +/** Simple wrapper providing periodic flushing to a disk-backed file. */ class CoreExport FileWriter { |