summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
1d95c81)
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 settings(argc == 2 ? argv[1] : "");
+SETTINGS_IMPL newSettings = settings;
if (settings.ReadSettings())
{
if (settings.ReadSettings())
{
switch (sig)
{
case SIGHUP:
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;
traffCnt.Reload();
manager.reload();
break;