added: sessions data for plugins (plugindata.h plugindata.cpp)

git-svn-id: svn://ttmath.org/publicrep/winix/trunk@598 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
2010-05-04 21:58:22 +00:00
parent aff4cc516e
commit 2ad666d221
20 changed files with 604 additions and 243 deletions

View File

@@ -39,7 +39,8 @@ Plugin plugin;
void signal_term(int)
{
req_controller.SaveSessions();
log << log1 << "cmslu stopped" << logend;
req_controller.DeleteAllPluginsData();
log << log1 << "cmslu stopped" << logend << logsave;
exit(0);
}
@@ -50,7 +51,8 @@ void signal_hup(int)
{
log << log1 << "SIGHUP received" << logend;
data.signal_hup = true;
config.ReadConfig(false); /* errors not to stdout */
//config.ReadConfig(false); /* errors not to stdout */
// plugins are not ready for reloading
}
@@ -99,6 +101,7 @@ int main(int argv, char ** argc)
// it is done when the config is read
log << log3 << "base_server: " << data.base_server << logend;
// load plugins before loading sessions - req_controller.LoadSessions()
plugin.LoadPlugins(data.plugin_file);
request.Init();