Skip to content
This repository was archived by the owner on Apr 30, 2020. It is now read-only.

Commit 2c5dc34

Browse files
committed
Fix for Ctrl-C control to the application and update the tip for the OSWrappers
#130
1 parent 3876d4b commit 2c5dc34

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

CodeXL/Components/GpuProfiling/AMDTGpuProfiling/ProfileManager.cpp

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1192,7 +1192,16 @@ bool ProfileManager::LaunchProfilerServer(const osFilePath& strServer, const gtS
11921192
strServerLaunchMsg.append(strOptions);
11931193
OS_OUTPUT_DEBUG_LOG(strServerLaunchMsg.asCharArray(), OS_DEBUG_LOG_DEBUG);
11941194

1195-
if (osLaunchSuspendedProcess(strServer, strOptions, workDir, m_GPUProfilerProcessId, processHandle, threadHandle, false))
1195+
AdditionalProcessParams* additionalParams = nullptr;
1196+
1197+
#ifdef _WIN32
1198+
WindowsProcessAdditionalParameter windowsParam;
1199+
windowsParam.m_bCreateNewProcessWithGroup = false;
1200+
additionalParams = &windowsParam;
1201+
#endif
1202+
1203+
if (osLaunchSuspendedProcess(strServer, strOptions, workDir, m_GPUProfilerProcessId,
1204+
processHandle, threadHandle, false, false, true, additionalParams))
11961205
{
11971206
// Create a process monitor:
11981207
ProfileProcessMonitor* pNewMonitor = new ProfileProcessMonitor(m_GPUProfilerProcessId, runType);

Common/Src/AMDTOSWrappers

0 commit comments

Comments
 (0)