Don't call setgroups() during reload

fixes #6790
This commit is contained in:
Gunnar Beutner 2014-07-29 11:31:55 +02:00
parent d7b6544e45
commit ec0ae9f5b4
1 changed files with 1 additions and 1 deletions

View File

@ -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;
msgbuf << "setgroups() failed with error code " << errno << ", \"" << Utility::FormatErrorNumber(errno) << "\"";
Log(LogCritical, "icinga-app", msgbuf.str());