From cbdf673696119d53f2d2bb0821aa758b8b36878c Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Sat, 10 Sep 2016 22:56:29 +0300 Subject: [PATCH] Clang: Replace macro usage with HostOsInfo Change-Id: Ie2d02785a6f06447a270170d12f580fa1704b7ce Reviewed-by: Marco Bubke Reviewed-by: Nikolai Kosjar --- src/libs/clangbackendipc/connectionclient.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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)