diff options
author | Adam <Adam@anope.org> | 2011-05-23 04:41:51 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-05-23 04:41:51 -0400 |
commit | 8bf8832b70dea28e2048d5952ee03247f12bda92 (patch) | |
tree | f76f670690c105ec8f9ca079d868e930fd8f205b /modules | |
parent | 4dd7e261f5704569856b5854dcc1f68010f0aaad (diff) |
Rewrote the signal handling to use sigaction
Diffstat (limited to 'modules')
-rw-r--r-- | modules/core/os_restart.cpp | 3 | ||||
-rw-r--r-- | modules/core/os_shutdown.cpp | 3 | ||||
-rw-r--r-- | modules/core/os_update.cpp | 2 |
3 files changed, 5 insertions, 3 deletions
diff --git a/modules/core/os_restart.cpp b/modules/core/os_restart.cpp index 196d0a3ab..ea8f4b864 100644 --- a/modules/core/os_restart.cpp +++ b/modules/core/os_restart.cpp @@ -26,7 +26,8 @@ class CommandOSRestart : public Command { User *u = source.u; quitmsg = "RESTART command received from " + u->nick; - quitting = save_data = restarting = true; + save_databases(); + quitting = restarting = true; return MOD_CONT; } diff --git a/modules/core/os_shutdown.cpp b/modules/core/os_shutdown.cpp index 35f76f0c9..ac37fe0b8 100644 --- a/modules/core/os_shutdown.cpp +++ b/modules/core/os_shutdown.cpp @@ -26,7 +26,8 @@ class CommandOSShutdown : public Command { User *u = source.u; quitmsg = "SHUTDOWN command received from " + u->nick; - quitting = save_data = true; + save_databases(); + quitting = true; return MOD_CONT; } diff --git a/modules/core/os_update.cpp b/modules/core/os_update.cpp index 9f85d8b64..d4793c124 100644 --- a/modules/core/os_update.cpp +++ b/modules/core/os_update.cpp @@ -25,7 +25,7 @@ class CommandOSUpdate : public Command CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> ¶ms) { source.Reply(_("Updating databases.")); - save_data = true; + save_databases(); return MOD_CONT; } |