diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-12-23 16:06:16 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-12-23 16:06:16 +0000 |
commit | e04f190f6377e76d2f3c5b0ece40507f19531ae7 (patch) | |
tree | 29b7bafe05f2d1d56aa02dc2d9b5bfb900c79da5 /include | |
parent | c1316150a7b0679494828b8acab8c8fa2c35fa7b (diff) |
Program termination (including SIGTERM) now calls InspIRCd::Cleanup() which does most of the duties performed by InspIRCd::Restart().
This means that on controlled shutdown we give the modules a chance to unload, etc, and close our sockets and free ram in a proper way.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6075 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include')
-rw-r--r-- | include/inspircd.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/inspircd.h b/include/inspircd.h index 6cb5c0dd0..a15c1fd68 100644 --- a/include/inspircd.h +++ b/include/inspircd.h @@ -1121,6 +1121,12 @@ class InspIRCd : public classbase */ void Restart(const std::string &reason); + /** Prepare the ircd for restart or shutdown. + * This function unloads all modules which can be unloaded, + * closes all open sockets, and closes the logfile. + */ + void Cleanup(); + /** Begin execution of the server. * NOTE: this function NEVER returns. Internally, * after performing some initialisation routines, |