From ec0ae9f5b4c24e882ced6ce92809fb5ff98e974e Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Tue, 29 Jul 2014 11:31:55 +0200 Subject: [PATCH] Don't call setgroups() during reload fixes #6790 --- icinga-app/icinga.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/icinga-app/icinga.cpp b/icinga-app/icinga.cpp index 35a053150..29f2d8913 100644 --- a/icinga-app/icinga.cpp +++ b/icinga-app/icinga.cpp @@ -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());