diff options
Diffstat (limited to 'src/init.cpp')
-rw-r--r-- | src/init.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/init.cpp b/src/init.cpp index 4befb9ea1..5db768701 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -160,6 +160,11 @@ void Anope::HandleSignal() Anope::Quitting = true; Anope::SaveDatabases(); break; +#ifndef _WIN32 + case SIGUSR1: + Anope::SaveDatabases(); + break; +#endif } Signal = 0; @@ -198,8 +203,10 @@ static void InitSignals() sa.sa_handler = SignalHandler; +#ifndef _WIN32 + sigaction(SIGUSR1, &sa, NULL); +#endif sigaction(SIGHUP, &sa, NULL); - sigaction(SIGTERM, &sa, NULL); sigaction(SIGINT, &sa, NULL); |