]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/inspircd.h
spanningtree: use bindip aftype as a hint for dns lookup type
[user/henk/code/inspircd.git] / include / inspircd.h
index 1884346201259614423f05bb0a268e1cb9534ece..303d24745664ef2936e7c145e4ad17b1cf24a809 100644 (file)
@@ -73,6 +73,7 @@ struct fakederef
 #include "extensible.h"
 #include "fileutils.h"
 #include "numerics.h"
+#include "numeric.h"
 #include "uid.h"
 #include "server.h"
 #include "users.h"
@@ -506,9 +507,10 @@ class CoreExport InspIRCd
 
        /** Attempt to write the process id to a given file
         * @param filename The PID file to attempt to write to
+        * @param exitonfail If true and the PID fail cannot be written log to stdout and exit, otherwise only log on failure
         * @return This function may bail if the file cannot be written
         */
-       void WritePID(const std::string &filename);
+       void WritePID(const std::string& filename, bool exitonfail = true);
 
        /** This constructor initialises all the subsystems and reads the config file.
         * @param argc The argument count passed to main()
@@ -586,3 +588,4 @@ inline void stdalgo::culldeleter::operator()(classbase* item)
 
 #include "numericbuilder.h"
 #include "modules/whois.h"
+#include "modules/stats.h"