mirror of
https://github.com/Icinga/icinga2.git
synced 2026-02-18 18:19:13 -05:00
Merge b3893972f3 into 333534096e
This commit is contained in:
commit
4e9622c004
1 changed files with 4 additions and 0 deletions
|
|
@ -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()) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue