mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-23 05:34:48 +02:00
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:
commit
04edda531c
@ -1024,7 +1024,7 @@ bool Process::DoEvents()
|
|||||||
|
|
||||||
m_OutputStream << "<Timeout exceeded.>";
|
m_OutputStream << "<Timeout exceeded.>";
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
TerminateProcess(m_Process, 1);
|
TerminateProcess(m_Process, 3);
|
||||||
#else /* _WIN32 */
|
#else /* _WIN32 */
|
||||||
int error = ProcessKill(-m_Process, SIGKILL);
|
int error = ProcessKill(-m_Process, SIGKILL);
|
||||||
if (error) {
|
if (error) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user