mirror of
https://github.com/znc/znc.git
synced 2026-05-09 14:54:53 +02:00
Scheduling of quiet vs. verbose config saving
Rename the current ECONFIG_NEED_WRITE to ECONFIG_NEED_VERBOSE_WRITE as it always broadcasts the result for SIGUSR1, even on success. Keep ECONFIG_NEED_WRITE for cases where the config should be written without a notification of success.
This commit is contained in:
+1
-1
@@ -146,7 +146,7 @@ static void signalHandler(int sig) {
|
||||
break;
|
||||
case SIGUSR1:
|
||||
CUtils::PrintMessage("Caught SIGUSR1");
|
||||
CZNC::Get().SetConfigState(CZNC::ECONFIG_NEED_WRITE);
|
||||
CZNC::Get().SetConfigState(CZNC::ECONFIG_NEED_VERBOSE_WRITE);
|
||||
break;
|
||||
default:
|
||||
CUtils::PrintMessage("WTF? Signal handler called for a signal it doesn't know?");
|
||||
|
||||
Reference in New Issue
Block a user