From d7dfa6f1df4180bee431a4915ffb1e3627428ff4 Mon Sep 17 00:00:00 2001 From: Michael Insel Date: Mon, 27 Jan 2020 21:01:45 +0100 Subject: [PATCH] Terminate windows check processes with UNKNOWN state on timeout On Windows this terminates checks that reached the timeout with the UNKNOWN state instead the WARNING state. Co-authored-by: araujorm --- lib/base/process.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/base/process.cpp b/lib/base/process.cpp index 97754c19e..6f36da913 100644 --- a/lib/base/process.cpp +++ b/lib/base/process.cpp @@ -1024,7 +1024,7 @@ bool Process::DoEvents() m_OutputStream << ""; #ifdef _WIN32 - TerminateProcess(m_Process, 1); + TerminateProcess(m_Process, 3); #else /* _WIN32 */ int error = ProcessKill(-m_Process, SIGKILL); if (error) {