diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-08-23 19:57:02 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-08-23 19:57:02 +0000 |
commit | 443b0f9645d861ca47a6f041a46703e27da7c0c8 (patch) | |
tree | b87e52ce40b681dea0127d4d5375a88d5fad8d8e /include | |
parent | ab7a861a91fd204603775b8d06b1d99c1593229f (diff) |
Raft of fixes so that inspircd can call Cleanup() and Exit() in less 'stable' circumstances, e.g. when half initialized, and it wont segfault.
Also fix OpenLog to not always exit on error, but to return a bool instead, which is much more friendly on rehash (you don't want /REHASH dieing your server if you cant write the log!)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7804 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include')
-rw-r--r-- | include/inspircd.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/inspircd.h b/include/inspircd.h index cb40e2734..38ec9cf43 100644 --- a/include/inspircd.h +++ b/include/inspircd.h @@ -640,8 +640,9 @@ class CoreExport InspIRCd : public classbase /** Determine the right path for, and open, the logfile * @param argv The argv passed to main() initially, used to calculate program path * @param argc The argc passed to main() initially, used to calculate program path + * @return True if the log could be opened, false if otherwise */ - void OpenLog(char** argv, int argc); + bool OpenLog(char** argv, int argc); /** Close the currently open log file */ |