mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-24 22:24:44 +02:00
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 <araujorm@users.noreply.github.com>
This commit is contained in:
parent
fe8701d77e
commit
d7dfa6f1df
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user