This commit is contained in:
Alexander Aleksandrovič Klimov 2026-02-16 09:55:55 +01:00 committed by GitHub
commit 4e9622c004
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -922,6 +922,10 @@ static VOID WINAPI ServiceMain(DWORD argc, LPSTR *argv)
*/
int main(int argc, char **argv)
{
#ifdef _WIN32
(void)SetPriorityClass(GetCurrentProcess(), BELOW_NORMAL_PRIORITY_CLASS);
#endif /* _WIN32 */
#ifndef _WIN32
String keepFDs = Utility::GetFromEnvironment("ICINGA2_KEEP_FDS");
if (keepFDs.IsEmpty()) {