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

@@ -9,13 +9,13 @@ main.o: ../core/ticket.h ../core/db.h ../core/item.h ../core/user.h
main.o: ../core/group.h ../core/thread.h ../core/error.h ../core/log.h
main.o: ../core/dircontainer.h ../core/ugcontainer.h ../core/ticket.h
main.o: ../core/sessionmanager.h ../core/sessioncontainer.h ../core/session.h
main.o: ../core/rebus.h ../core/functionparser.h ../core/requesttypes.h
main.o: ../core/data.h ../core/dirs.h ../core/users.h ../core/groups.h
main.o: ../core/functions.h ../core/function.h ../core/lastcontainer.h
main.o: ../core/mounts.h ../core/mount.h ../core/loadavg.h ../core/request.h
main.o: ../core/compress.h ../core/acceptencodingparser.h
main.o: ../core/acceptbaseparser.h ../core/htmlfilter.h
main.o: ../core/postmultiparser.h ../core/config.h ../core/notify.h
main.o: ../templatesnotify/templatesnotify.h ../core/mount.h
main.o: ../core/rebus.h ../core/plugindata.h ../core/functionparser.h
main.o: ../core/requesttypes.h ../core/data.h ../core/dirs.h ../core/users.h
main.o: ../core/groups.h ../core/functions.h ../core/function.h
main.o: ../core/lastcontainer.h ../core/mounts.h ../core/mount.h
main.o: ../core/loadavg.h ../core/request.h ../core/compress.h
main.o: ../core/acceptencodingparser.h ../core/acceptbaseparser.h
main.o: ../core/htmlfilter.h ../core/postmultiparser.h ../core/config.h
main.o: ../core/notify.h ../templatesnotify/templatesnotify.h ../core/mount.h
main.o: ../templates/misc.h ../core/plugin.h ../core/request.h ../core/data.h
main.o: ../core/pluginmsg.h

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();