Merge pull request #7788 from Icinga/bugfix/windows-timeout-unknown-state

Terminate windows check processes with UNKNOWN state on timeout
This commit is contained in:
Michael Friedrich 2020-02-10 15:34:28 +01:00 committed by GitHub
commit 04edda531c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1024,7 +1024,7 @@ bool Process::DoEvents()
m_OutputStream << "<Timeout exceeded.>";
#ifdef _WIN32
TerminateProcess(m_Process, 1);
TerminateProcess(m_Process, 3);
#else /* _WIN32 */
int error = ProcessKill(-m_Process, SIGKILL);
if (error) {