X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=include%2Finspircd.h;fp=include%2Finspircd.h;h=303d24745664ef2936e7c145e4ad17b1cf24a809;hb=b9e11915a976daaf790ebc763aff56e19fd49e0f;hp=ee09070f858799d5ffca7c534769c9a96dadc3ca;hpb=f9fd78c01623514a060c607534fc52cb73140200;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/include/inspircd.h b/include/inspircd.h index ee09070f8..303d24745 100644 --- a/include/inspircd.h +++ b/include/inspircd.h @@ -507,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()