}
SETTINGS_IMPL settings(argc == 2 ? argv[1] : "");
-SETTINGS_IMPL newSettings = settings;
if (settings.ReadSettings())
{
switch (sig)
{
case SIGHUP:
+ {
+ SETTINGS_IMPL newSettings(settings);
if (newSettings.ReadSettings())
{
STG_LOGGER & WriteServLog = GetStgLogger();
WriteServLog("ReadSettings error. %s", newSettings.GetStrError().c_str());
return -1;
}
+ settings = newSettings;
traffCnt.Reload();
manager.reload();
+ }
break;
case SIGTERM:
running = false;