projects
/
citadel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
No more cleanup hooks. The OS can reclaim memory better than we can. We want to...
[citadel.git]
/
citadel
/
citserver.c
diff --git
a/citadel/citserver.c
b/citadel/citserver.c
index b9648f6f70a3ba3b3b5759e992d1069477583070..a071b2b72f09e42cae26b59b5b62969b4e61061e 100644
(file)
--- a/
citadel/citserver.c
+++ b/
citadel/citserver.c
@@
-1,7
+1,7
@@
/*
* Main source module for the Citadel server
*
/*
* Main source module for the Citadel server
*
- * Copyright (c) 1987-202
0
by the citadel.org team
+ * Copyright (c) 1987-202
1
by the citadel.org team
*
* This program is open source software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License, version 3.
*
* This program is open source software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License, version 3.
@@
-123,7
+123,6
@@
void master_startup(void)
*/
int master_cleanup(int exitcode)
{
*/
int master_cleanup(int exitcode)
{
- struct CleanupFunctionHook *fcn;
static int already_cleaning_up = 0;
if (already_cleaning_up) {
static int already_cleaning_up = 0;
if (already_cleaning_up) {
@@
-133,11
+132,6
@@
int master_cleanup(int exitcode)
}
already_cleaning_up = 1;
}
already_cleaning_up = 1;
- /* Run any cleanup routines registered by loadable modules */
- for (fcn = CleanupHookTable; fcn != NULL; fcn = fcn->next) {
- (*fcn->h_function_pointer) ();
- }
-
/* Do system-dependent stuff */
sysdep_master_cleanup();
/* Do system-dependent stuff */
sysdep_master_cleanup();
@@
-145,7
+139,7
@@
int master_cleanup(int exitcode)
shutdown_config_system();
/* Close databases */
shutdown_config_system();
/* Close databases */
- syslog(LOG_INFO, "
Closing databases\n
");
+ syslog(LOG_INFO, "
citserver: closing databases
");
close_databases();
/* If the operator requested a halt but not an exit, halt here. */
close_databases();
/* If the operator requested a halt but not an exit, halt here. */