summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2012-11-01 22:04:01 +0000
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2012-11-01 22:04:01 +0000
commit8daa0e2a6fe61e95dc2dd145ebbdb2b05c097196 (patch)
treefe84785d519a725ece7a03c271e7a82e2dc3581e /src
parentc3fd49da58b5970734bdd2fd328f6e78a9ea3727 (diff)
- restart.c: since save_all_databases may generate server traffic and log
activity, it makes more sense to save the databases _before_ flushing the sendqueue/closing file descriptors git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/trunk@1631 82007160-df01-0410-b94d-b575c5fd34c7
Diffstat (limited to 'src')
-rw-r--r--src/restart.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/restart.c b/src/restart.c
index 2d03291..eb46fff 100644
--- a/src/restart.c
+++ b/src/restart.c
@@ -80,10 +80,11 @@ server_die(const char *mesg, int rboot)
ilog(LOG_TYPE_IRCD, "%s", buffer);
+ save_all_databases(NULL);
+
send_queued_all();
close_fds(NULL);
- save_all_databases(NULL);
unlink(pidFileName);
if (rboot)