added. The newSetings.ReadSettings() call and checking of result added
in the 'switch' after the case SIGHUP.
}
SETTINGS_IMPL settings(argc == 2 ? argv[1] : "");
+SETTINGS_IMPL newSettings = settings;
if (settings.ReadSettings())
{
switch (sig)
{
case SIGHUP:
+ if (newSettings.ReadSettings())
+ {
+ STG_LOGGER & WriteServLog = GetStgLogger();
+
+ if (newSettings.GetLogFileName() != "")
+ WriteServLog.SetLogFileName(newSettings.GetLogFileName());
+
+ WriteServLog("ReadSettings error. %s", newSettings.GetStrError().c_str());
+ return -1;
+ }
traffCnt.Reload();
manager.reload();
break;