summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
7554727)
case SIGHUP. The settings = newSettings added to case SIGHUP.
}
SETTINGS_IMPL settings(argc == 2 ? argv[1] : "");
}
SETTINGS_IMPL settings(argc == 2 ? argv[1] : "");
-SETTINGS_IMPL newSettings = settings;
if (settings.ReadSettings())
{
if (settings.ReadSettings())
{
switch (sig)
{
case SIGHUP:
switch (sig)
{
case SIGHUP:
+ {
+ SETTINGS_IMPL newSettings(settings);
if (newSettings.ReadSettings())
{
STG_LOGGER & WriteServLog = GetStgLogger();
if (newSettings.ReadSettings())
{
STG_LOGGER & WriteServLog = GetStgLogger();
WriteServLog("ReadSettings error. %s", newSettings.GetStrError().c_str());
return -1;
}
WriteServLog("ReadSettings error. %s", newSettings.GetStrError().c_str());
return -1;
}
+ settings = newSettings;
traffCnt.Reload();
manager.reload();
traffCnt.Reload();
manager.reload();
break;
case SIGTERM:
running = false;
break;
case SIGTERM:
running = false;