mirror of https://github.com/Icinga/icinga2.git
parent
d7b6544e45
commit
ec0ae9f5b4
|
@ -405,7 +405,7 @@ int Main(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (setgroups(0, NULL) < 0) {
|
if (!g_AppParams.count("reload-internal") && setgroups(0, NULL) < 0) {
|
||||||
std::ostringstream msgbuf;
|
std::ostringstream msgbuf;
|
||||||
msgbuf << "setgroups() failed with error code " << errno << ", \"" << Utility::FormatErrorNumber(errno) << "\"";
|
msgbuf << "setgroups() failed with error code " << errno << ", \"" << Utility::FormatErrorNumber(errno) << "\"";
|
||||||
Log(LogCritical, "icinga-app", msgbuf.str());
|
Log(LogCritical, "icinga-app", msgbuf.str());
|
||||||
|
|
Loading…
Reference in New Issue