summaryrefslogtreecommitdiff
path: root/src/restart.c
diff options
context:
space:
mode:
authormichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2012-11-01 21:32:25 +0000
committermichael <michael@82007160-df01-0410-b94d-b575c5fd34c7>2012-11-01 21:32:25 +0000
commitc3fd49da58b5970734bdd2fd328f6e78a9ea3727 (patch)
tree11cc6344827fc50c9039e2e4068ad3e28bc382a8 /src/restart.c
parentd0c4f145a5a76c37951162a0cf32f638e50ad8b7 (diff)
- restart.c: ensure databases get dumped to disk before terminating
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/trunk@1630 82007160-df01-0410-b94d-b575c5fd34c7
Diffstat (limited to 'src/restart.c')
-rw-r--r--src/restart.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/restart.c b/src/restart.c
index 01966a6..2d03291 100644
--- a/src/restart.c
+++ b/src/restart.c
@@ -32,6 +32,7 @@
#include "log.h"
#include "client.h" /* for UMODE_ALL */
#include "memory.h"
+#include "conf_db.h"
void
restart(const char *mesg)
@@ -82,6 +83,7 @@ server_die(const char *mesg, int rboot)
send_queued_all();
close_fds(NULL);
+ save_all_databases(NULL);
unlink(pidFileName);
if (rboot)