]> granicus.if.org Git - icinga2/commitdiff
Don't call setgroups() during reload
authorGunnar Beutner <gunnar.beutner@netways.de>
Tue, 29 Jul 2014 09:31:55 +0000 (11:31 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Tue, 29 Jul 2014 09:31:55 +0000 (11:31 +0200)
fixes #6790

icinga-app/icinga.cpp

index 35a0531506d5328d133b3cd16e47c85ab94e5b69..29f2d8913cecdb17422a8b133bb313c52f416f52 100644 (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());