]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
FileWriter hasn't been non-blocking for a very, very long time.
authorRobin Burchell <robin+git@viroteck.net>
Mon, 16 Apr 2012 10:01:36 +0000 (12:01 +0200)
committerRobin Burchell <robin+git@viroteck.net>
Mon, 16 Apr 2012 10:01:54 +0000 (12:01 +0200)
include/logger.h

index f6f2f1e4fabcc7624fc593dc3b6471a42e1bf44b..2a075431e9f3e162b7d1d0996b5acb4217a1e72a 100644 (file)
 #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
 {