Windows agents: run checks with lower priority

not to let the monitoring block the actual services.
This commit is contained in:
Alexander A. Klimov 2026-03-09 17:39:16 +01:00
parent b759df9808
commit eda7103056

View file

@ -920,7 +920,7 @@ void Process::Run(const std::function<void(const ProcessResult&)>& callback)
envp[offset] = '\0';
if (!CreateProcess(nullptr, args, nullptr, nullptr, TRUE,
0 /*EXTENDED_STARTUPINFO_PRESENT*/, envp, nullptr, &si.StartupInfo, &pi)) {
BELOW_NORMAL_PRIORITY_CLASS, envp, nullptr, &si.StartupInfo, &pi)) {
DWORD error = GetLastError();
CloseHandle(outWritePipe);
CloseHandle(outWritePipeDup);