diff --git a/src/libs/clangbackendipc/connectionclient.cpp b/src/libs/clangbackendipc/connectionclient.cpp index dd8309ada94..65223928f9b 100644 --- a/src/libs/clangbackendipc/connectionclient.cpp +++ b/src/libs/clangbackendipc/connectionclient.cpp @@ -30,6 +30,8 @@ #include "cmbregistertranslationunitsforeditormessage.h" #include "cmbunregistertranslationunitsforeditormessage.h" +#include + #include #include #include @@ -180,13 +182,10 @@ void ConnectionClient::endProcess(QProcess *process) void ConnectionClient::terminateProcess(QProcess *process) { - Q_UNUSED(process) -#ifndef Q_OS_WIN32 - if (isProcessIsRunning()) { + if (!Utils::HostOsInfo::isWindowsHost() && isProcessIsRunning()) { process->terminate(); process->waitForFinished(); } -#endif } void ConnectionClient::killProcess(QProcess *process)